Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions LGHelper/LGHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down