0
使用UIImagePickerController捕獲圖像,它在iOS9上正常工作,但在iOS10狀態欄上覆蓋控制器的頂級內容。iOS 10:UIImagePickerController類型攝像頭狀態欄覆蓋頂級內容
使用UIImagePickerController捕獲圖像,它在iOS9上正常工作,但在iOS10狀態欄上覆蓋控制器的頂級內容。iOS 10:UIImagePickerController類型攝像頭狀態欄覆蓋頂級內容
我面臨着同樣的問題在iOS的10
它看起來像蘋果自動隱藏狀態欄呈現時的UIImagePickerController,但你必須在UIViewControllerBasedStatusBarAppearance與設置您的YES info.plist文件。
如果你必須保持UIViewControllerBasedStatusBarAppearance沒有,你應該通過調用隱藏狀態欄:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
然後將其設置回時的UIImagePickerController被駁回。