TZLocationManager.h 811 B

123456789101112131415161718192021222324
  1. //
  2. // TZLocationManager.h
  3. // TZImagePickerController
  4. //
  5. // Created by 谭真 on 2017/06/03.
  6. // Copyright © 2017年 谭真. All rights reserved.
  7. // 定位管理类
  8. #import <Foundation/Foundation.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. @interface TZLocationManager : NSObject
  11. + (instancetype)manager NS_SWIFT_NAME(default());
  12. /// 开始定位
  13. - (void)startLocation;
  14. - (void)startLocationWithSuccessBlock:(void (^)(NSArray<CLLocation *> *))successBlock failureBlock:(void (^)(NSError *error))failureBlock;
  15. - (void)startLocationWithGeocoderBlock:(void (^)(NSArray *geocoderArray))geocoderBlock;
  16. - (void)startLocationWithSuccessBlock:(void (^)(NSArray<CLLocation *> *))successBlock failureBlock:(void (^)(NSError *error))failureBlock geocoderBlock:(void (^)(NSArray *geocoderArray))geocoderBlock;
  17. @end