Starting Location Request
When permission for location services has been granted, an instance of CLLocationManager
can be used to find the current location. In the sample app, ICFLocationManager
provides a central class to manage location functionality, so it manages an instance of CLLocationManager
for the app. In the init
method of ICFLocationManager
, a CLLocationManager
is created and customized for the desired location-searching approach.
[self setLocationManager:[[CLLocationManager alloc] init]];[self.locationManagersetDesiredAccuracy:kCLLocationAccuracyBest];[self.locationManager setDistanceFilter:100.0f];[self.locationManager setDelegate:self];
A CLLocationManager
has several parameters that can be set to ...
Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.