Skip to content

Instantly share code, notes, and snippets.

@bdittmer
Created April 4, 2013 05:41
Show Gist options
  • Save bdittmer/5308095 to your computer and use it in GitHub Desktop.
Save bdittmer/5308095 to your computer and use it in GitHub Desktop.
- (void)startCoreUpdate {
if (!_locationManager) {
self.locationManager = [[[CLLocationManager alloc] init] autorelease];
_locationManager.delegate = self;
_locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters;
_locationManager.distanceFilter = 80.0f;
_locationManager.purpose = NSLocalizedString(@"GeoPhoto uses your location to find nearby photos", nil);
}
[_locationManager startUpdatingLocation];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment