录制视频后的UIImagePickerController和编辑屏幕应用程序转到后台并返回,UI变形如下。
有关如何解决此问题的任何想法。或者这是一个已知的问题? 以下是演示代码:
self.imagePickerController= [[UIImagePickerController alloc] init];
self.imagePickerController.delegate = self;
self.imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
if(self.mediaType==MediaTypePhoto){
self.imagePickerController.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeImage, nil];
}else if(self.mediaType==MediaTypeVideo){
self.imagePickerController.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
self.imagePickerController.allowsEditing = YES;
self.imagePickerController.videoMaximumDuration=30.0f;
}
[self.parentViewController.parentViewController.navigationController presentViewController:self.imagePickerController animated:YES completion:nil]