I haven\'t think of this yet now .
Till now whenever device was asking me use location update I was allowing it .
But when now I am not allowing then it th
Implement - (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
.
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
NSMutableString *errorString = [[[NSMutableString alloc] init] autorelease];
if ([error domain] == kCLErrorDomain) {
// We handle CoreLocation-related errors here
switch ([error code]) {
// "Don't Allow" on two successive app launches is the same as saying "never allow". The user
// can reset this for all apps by going to Settings > General > Reset > Reset Location Warnings.
case kCLErrorDenied:
//...
break;
case kCLErrorLocationUnknown:
//...
break;
default:
//...
break;
}
} else {
// We handle all non-CoreLocation errors here
}
}