当录制视频后应用程序转到后台时,UIImagePickerController会失真

时间:2015-03-12 13:50:50

标签: ios ios8 uiimagepickercontroller

录制视频后的UIImagePickerController和编辑屏幕应用程序转到后台并返回,UI变形如下。

Distorted Image

有关如何解决此问题的任何想法。或者这是一个已知的问题? 以下是演示代码:

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]

0 个答案:

没有答案