O'Reilly logo

iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK by Joe Keeley, Kyle Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required