From 628f23a610014d13236f34622505ca4b115b41ac Mon Sep 17 00:00:00 2001 From: smartdj Date: Mon, 12 Sep 2016 19:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=BC=B9=E5=87=BA=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E7=9A=84=E6=97=B6=E5=80=99=E7=8A=B6=E6=80=81=E6=A0=8F?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=BB=91=E8=89=B2=EF=BC=88=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E6=98=AF=E4=BF=AE=E6=94=B9=E4=BA=86=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=AF=BC=E8=88=AA=E6=A0=8F=E8=83=8C=E6=99=AF=E8=89=B2?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LGHelper/LGHelper.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/LGHelper/LGHelper.m b/LGHelper/LGHelper.m index 47f0255..c62c19a 100644 --- a/LGHelper/LGHelper.m +++ b/LGHelper/LGHelper.m @@ -2648,6 +2648,13 @@ - (BOOL)imagePickerControllerShowWithSourceType:(UIImagePickerControllerSourceTy _imagePickerController.delegate = (delegate ? delegate : self); if (setupHandler) setupHandler(_imagePickerController); + + //必须加上这一句,否则可能会导致在关闭弹出窗口的时候状态栏出现黑色(原因可能是修改了全局导航栏背景色) + if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) { + _imagePickerController.modalPresentationStyle=UIModalPresentationOverCurrentContext; + }else{ + _imagePickerController.modalPresentationStyle=UIModalPresentationCurrentContext; + } [viewController presentViewController:_imagePickerController animated:animated completion:presentCompletionHandler]; }