我面對的狀態欄問題的iOS 7 的UIImagePickerController presentViewController - 狀態欄問題ios7
下面是代碼爲呈現這個圖片選擇器
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
picker.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;
if ([self respondsToSelector:@selector(presentViewController:animated:completion:)]){
[self presentViewController:picker animated:YES completion:^{
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
[[UIApplication sharedApplication] setStatusBarHidden:YES
withAnimation:UIStatusBarAnimationNone];
}];
}
else {
[self presentModalViewController:picker animated:YES];
}
}
,當我試圖挑選圖像屏幕就像下面
任何一個可以幫助我解決這個問題?
你使用assetlibrary嗎? – Rushabh
不,我不使用那個 – Dev
@Dev,只是爲你添加完整的解決方案。請檢查我的答案的編輯部分。 –