Skip to content

Instantly share code, notes, and snippets.

@donly
Created May 25, 2012 03:31
Show Gist options
  • Save donly/2785596 to your computer and use it in GitHub Desktop.
Save donly/2785596 to your computer and use it in GitHub Desktop.
CLLocationManager *manager = [[CLLocationManager alloc] init];
if (manager.locationServicesEnabled == NO) {
UIAlertView *servicesDisabledAlert = [[UIAlertView alloc] initWithTitle:@"Location Services Disabled" message:@"You currently have all location services for this device disabled. If you proceed, you will be asked to confirm whether location services should be reenabled." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[servicesDisabledAlert show];
[servicesDisabledAlert release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment