CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | BSD |
| ReleasedLast Release | Dec 2014 |
Maintained by Andres Canal.
If you need to get the device location in multiple sections of the app CLLocationManager may be a solution. CLLocationManager is a wrapper to avoid using multiple CLLocationManager across an application. All delegates added to IKLocation are notified when the location is available or when the refresh method is called. IKLocation automatically removes object when those are deallocated.
IKLocation.h and IKLocation.m to your project. [IKLocation sharedClient] when you want your app to prompt the user to allow access location.IKLocationDelegate
[[IKLocation sharedLocation] setDelegate:self];
ikManager:didUpdateToLocation:fromLocation: and if you want ikManagerDidFailWithError:
You can add as many delegates as you want. The wrapper is using a NSPointerArray to avoid reference cycles.
The app also exposes the following properties:
(CLLocation *) Current location (CLLocation *) Previous location (CGFloat) Current latitude (CGFloat) Current longitude (NSString *) Current city (NSString *) Current state(NSString *) Current countryThe app also exposes the following methods: