I use UIImagePickerController to record videos and shoot, edit and save videos to a file. When the UIImagePickerController is rejected, the status bar blinks red and disappears, and for a while my panel moves down. cannot understand why this is happening, where is the problem.
I want to avoid this. I noticed this with a decrease in frequency from iOS8.1, iOS8, iOS7.1, etc.
moving some time (means random). 
why the fixture comes when I record a video and upload it to the server or using the cancel button in uiimagepickerviewcontreller .. Why doesn’t this happen when I take the image and why doesn’t it happen every time.
-(void)mediaAction{
}
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
cameraUI = [[UIImagePickerController alloc] init];
cameraUI.delegate = self;
NSString *buttonTitle = [actionSheet buttonTitleAtIndex:buttonIndex];
if ([buttonTitle isEqualToString:@"Record a Video"]) {
mediachecker=@"video";
cameraUI.sourceType = UIImagePickerControllerSourceTypeCamera;
cameraUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
cameraUI.allowsEditing = NO;
[self presentViewController:cameraUI animated:YES completion:nil];
}
if ([buttonTitle isEqualToString:@"Upload from Gallery"]) {
mediachecker=@"video";
cameraUI.allowsEditing = YES;
cameraUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
cameraUI.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
[self presentViewController:cameraUI animated:YES completion:NULL];
}
if ([buttonTitle isEqualToString:@"Click a Picture"]) {
mediachecker=@"photo";
cameraUI.allowsEditing=YES;
cameraUI.sourceType=UIImagePickerControllerSourceTypeCamera;
[self presentViewController:cameraUI animated:YES completion:NULL];
}
if ([buttonTitle isEqualToString:@"Photo Library"]) {
mediachecker=@"photo";
cameraUI.allowsEditing=YES;
cameraUI.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:cameraUI animated:YES completion:NULL];
}
if ([buttonTitle isEqualToString:@"Cancel"]) {
}
}
- (void) imagePickerController: (UIImagePickerController *) picker
didFinishPickingMediaWithInfo: (NSDictionary *) info {
[picker dismissViewControllerAnimated:YES completion:nil];
}
- (void) imagePickerControllerDidCancel: (UIImagePickerController *) picker {
[[picker presentingViewController] dismissViewControllerAnimated:YES completion:nil];
}
Redbar Noticed UIImagePickerController
IPhone - Modal View Controller -
. .