Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
- {
- if([CLLocationManager locationServicesEnabled]){
- NSLog(@"Location Services Enabled");
- if([CLLocationManager authorizationStatus]==kCLAuthorizationStatusDenied){
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"App Permission Denied"
- message:@"Impulse requires user location to function properly. To enable location services, please go to Device Settings and turn on Location Service for this app."
- delegate:nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil];
- [alert show];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement