Created
April 3, 2012 21:16
-
-
Save justin/2295555 to your computer and use it in GitHub Desktop.
Core Location Purpose Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.locationManager = [[CLLocationManager alloc] init]; | |
self.locationManager.desiredAccuracy = kCLLocationAccuracyKilometer; | |
self.locationManager.distanceFilter = 1000.0; // 1 km | |
self.locationManager.delegate = self; | |
self.locationManager.purpose = NSLocalizedString(@"To show you nearby activities", @""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment