In my UIViewController class, I created a UIImagePickerController as follows:
-(BOOL)startCameraPickerFromViewController{
if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
return NO;
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.allowsEditing = NO ;
picker.delegate = appDelegate.uiImagePickerDelegate;
[self presentModalViewController:picker animated:NO];
return YES;
}
When I call my function, I get:
Using a two-stage rotation animation. To use a smoother single-stage animation, this application should remove the two-stage implementation method.
I read in the UIViewController Class Reference on Apple that I am trying to use the old way of using rotation. But in my UIViewController I never wrote:
– willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
or
– willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
methods.
I tried to override
willAnimateRotationToInterfaceOrientation:duration:
but this is the same problem.
I think the problem comes from UIImagePickerController. Is there a solution?