在iOS 7.0中,我通过添加代码来隐藏我的应用程序中的状态栏。
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
将信息.plist文件中的“View controller-based status bar appearance”键设置为“NO”,即可在iOS 7.0和7.1中隐藏状态栏。
更新:这只发生在iPad上运行的iPhone应用程序中,在iPhone或模拟器中我没有看到这个问题。