Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bracer

macrumors newbie
Original poster
Nov 24, 2009
14
0
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 ?
 
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 ?

You mean calibrate compass?
 
Code:
- (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager{
	return YES;
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.