Code:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
{
//User denial core location access.
if ([error code] == kCLErrorDenied)
{
[manager stopUpdatingLocation];
[manager stopUpdatingHeading];
}
else if ([error code] == kCLErrorHeadingFailure)
{
// This error indicates that the heading could not be determined, most likely because of strong magnetic interference.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Magnetic Field Interference" message:@"Please Move Away from the Magnetic Disturbance." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
}
I am using UIAlert...what is the way to bring up that official dialog ?