我在 iOS 7 中遇到状态栏问题。
下面是展示这个图像选择器的代码
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];
}
}
当我尝试选择图像时,屏幕如下所示
谁能帮我解决这个问题?