本文介绍了无法隐藏iOS7中的状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我刚刚将iPhone 5 iOS 7升级到四个测试版。现在当我在这款iPhone上从Xcode 5运行我的应用时,状态栏不会隐藏,即使它应该隐藏。I just upgraded my iPhone 5 iOS 7 to four beta version. Now when I run my app from Xcode 5 on this iPhone, status bar doesn’t hide, even though it should.不工作:[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];不工作:[UIApplication sharedApplication].statusBarHidden = YES;推荐答案在您的应用程序plist文件中添加一行称为查看基于控制器的状态栏外观并将其设置为否in your apps plist file add a row call it "View controller-based status bar appearance" and set it to NO请注意,如果您在应用程序中使用UIImagePickerController,这根本不起作用。Note that this simply does not work, if you are using UIImagePickerController in the app.来自 http://www.openfl .org / developer / forums / general-discussion / iphone-5ios-7-cant-hide-status-bar / ,mgiroux的解决方案from http://www.openfl.org/developer/forums/general-discussion/iphone-5ios-7-cant-hide-status-bar/, mgiroux's solution 这篇关于无法隐藏iOS7中的状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-02 08:21