We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4f4f9b commit 0803d53Copy full SHA for 0803d53
2 files changed
TZImagePickerController/TZImagePickerController/TZLocationManager.h
@@ -20,5 +20,8 @@
20
- (void)startLocationWithGeocoderBlock:(void (^)(NSArray *geocoderArray))geocoderBlock;
21
- (void)startLocationWithSuccessBlock:(void (^)(NSArray<CLLocation *> *))successBlock failureBlock:(void (^)(NSError *error))failureBlock geocoderBlock:(void (^)(NSArray *geocoderArray))geocoderBlock;
22
23
+/// 结束定位
24
+- (void)stopUpdatingLocation;
25
+
26
@end
27
TZImagePickerController/TZImagePickerController/TZLocationManager.m
@@ -52,6 +52,10 @@ - (void)startLocationWithSuccessBlock:(void (^)(NSArray<CLLocation *> *))success
52
_failureBlock = failureBlock;
53
}
54
55
+- (void)stopUpdatingLocation {
56
+ [self.locationManager stopUpdatingLocation];
57
+}
58
59
#pragma mark - CLLocationManagerDelegate
60
61
/// 地理位置发生改变时触发
0 commit comments