Skip to content

Instantly share code, notes, and snippets.

@Donohue
Last active December 17, 2015 16:29
Show Gist options
  • Save Donohue/5638771 to your computer and use it in GitHub Desktop.
Save Donohue/5638771 to your computer and use it in GitHub Desktop.
Register for background location updates
location_manager = [[CLLocationManager alloc] init];
location_manager.desiredAccuracy = kCLLocationAccuracyBest;
location_manager.delegate = self;
[location_manager startUpdatingLocation];
updating_location = YES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment