Commit f4de45fd authored by yuzheng's avatar yuzheng

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

parent 8e046966
...@@ -670,7 +670,6 @@ static CGFloat itemMargin = 5; ...@@ -670,7 +670,6 @@ static CGFloat itemMargin = 5;
self.imagePickerVc.videoMaximumDuration = tzImagePickerVc.videoMaximumDuration; self.imagePickerVc.videoMaximumDuration = tzImagePickerVc.videoMaximumDuration;
} }
self.imagePickerVc.mediaTypes= mediaTypes; self.imagePickerVc.mediaTypes= mediaTypes;
_imagePickerVc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
if (tzImagePickerVc.uiImagePickerControllerSettingBlock) { if (tzImagePickerVc.uiImagePickerControllerSettingBlock) {
tzImagePickerVc.uiImagePickerControllerSettingBlock(_imagePickerVc); tzImagePickerVc.uiImagePickerControllerSettingBlock(_imagePickerVc);
} }
......
...@@ -425,7 +425,6 @@ ...@@ -425,7 +425,6 @@
if (mediaTypes.count) { if (mediaTypes.count) {
_imagePickerVc.mediaTypes = mediaTypes; _imagePickerVc.mediaTypes = mediaTypes;
} }
_imagePickerVc.modalPresentationStyle = UIModalPresentationOverCurrentContext;
[self presentViewController:_imagePickerVc animated:YES completion:nil]; [self presentViewController:_imagePickerVc animated:YES completion:nil];
} else { } else {
NSLog(@"模拟器中无法打开照相机,请在真机中使用"); 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