I have an iOS application such as whatsapp and ... when I present a UIImagePickerController with a source type of UIImagePickerControllerSourceTypeCamera .
imagePicker = [UIImagePickerController new]; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; imagePicker.delegate = self; imagePicker.mediaTypes =[NSArray arrayWithObjects:(NSString *)kUTTypeMovie,(NSString *)kUTTypeImage,nil]; [self presentViewController:imagePicker animated:YES completion:nil];
Problem
Several times after canceling or completing the capture of the UIImagePickerController in Video mode, when I return to my view manager (turn off the camera), my View input (my Windows) goes to the bottom with 20 pixels (status bar height), I think my problem is related to this link How to set the view under the green bar during a phone call? , because in the video segment the status indicator is displayed for several minutes. In some conditions, my Windows (UITabbar in the previous controller goes to the bottom as well) !!!

Edit
the solution only works in its current form, but another view controller is damaged (goes down)
source share