Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. -(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
  2. {
  3. if([CLLocationManager locationServicesEnabled]){
  4.  
  5. NSLog(@"Location Services Enabled");
  6.  
  7. if([CLLocationManager authorizationStatus]==kCLAuthorizationStatusDenied){
  8. UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"App Permission Denied"
  9. 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."
  10. delegate:nil
  11. cancelButtonTitle:@"OK"
  12. otherButtonTitles:nil];
  13. [alert show];
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement