LocationManager.h 557 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // LocationManager.h
  3. // CParam
  4. //
  5. // Created by breeze deng on 2017/8/7.
  6. // Copyright © 2017年 Breeze. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. @protocol LocationManagerDelegate <NSObject>
  11. @optional
  12. - (void)updateLocationWithCoordinate:(CLLocationCoordinate2D)coordinate;
  13. @end
  14. @interface LocationManager : NSObject
  15. + (LocationManager *)shareInstance;
  16. @property (nonatomic, weak) id<LocationManagerDelegate> delegate;
  17. - (void)startUpdatingLocation;
  18. - (void)stopUpdatingLocation;
  19. @end