How to you bring up that "Calibrate Camera by waving in an eight ~~~" dialog ?

Discussion in 'iOS Programming' started by Bracer, Dec 30, 2009.

  1. Bracer macrumors newbie

    Joined:
    Nov 24, 2009
    #1
    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 ?
     
  2. akm3 macrumors 68020

    Joined:
    Nov 15, 2007
    #2
    You mean calibrate compass?
     
  3. m4rc0s macrumors newbie

    Joined:
    Apr 20, 2009
    #3
    Code:
    - (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager{
    	return YES;
    }
     

Share This Page