Two-stage rotation animation notification in the UIImagePickerController console

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;

// Picker is displayed asynchronously.


[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?

+3
1

, UIImagePickerController UIViewController. . SO: " ​​ " UIImagePickerController

0

Source: https://habr.com/ru/post/1752049/


All Articles