Commit f4de45fd authored by yuzheng's avatar yuzheng

弹出相机时去掉modalPresentationStyle的设置,防止屏幕旋转时有黑影

parent 8e046966
......@@ -670,7 +670,6 @@ static CGFloat itemMargin = 5;
self.imagePickerVc.videoMaximumDuration = tzImagePickerVc.videoMaximumDuration;
}
self.imagePickerVc.mediaTypes= mediaTypes;
_imagePickerVc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
if (tzImagePickerVc.uiImagePickerControllerSettingBlock) {
tzImagePickerVc.uiImagePickerControllerSettingBlock(_imagePickerVc);
}
......
......@@ -425,7 +425,6 @@
if (mediaTypes.count) {
_imagePickerVc.mediaTypes = mediaTypes;
}
_imagePickerVc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
[self presentViewController:_imagePickerVc animated:YES completion:nil];
} else {
NSLog(@"模拟器中无法打开照相机,请在真机中使用");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment