Created
May 25, 2012 03:31
-
-
Save donly/2785596 to your computer and use it in GitHub Desktop.
This file contains 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
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