隐藏状态栏 iOS 7 [英] Hiding status bar iOS 7
本文介绍了隐藏状态栏 iOS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法在 ios 7 设备上的视图控制器上隐藏状态栏.
Can't hide status bar on view controller on ios 7 device.
已经尝试通过plist文件和Appcontroller.mm进行设置,但我仍然没有隐藏状态栏
Already tried setting through plist file and also in Appcontroller.mm but still i doesn't hide the status bar
[[UIApplication sharedApplication] setStatusBarHidden:YES];//Doesn't help
推荐答案
转到 info.plist 并添加两个属性(如果不存在).将状态栏最初是隐藏的"设置为 YES
并将 UIViewControllerBasedStatusBarAppearance
设置为 NO
.这将隐藏您的应用的状态栏.
Go to info.plist and add two attributes if not present. set "Status bar is initially hidden" to YES
and set UIViewControllerBasedStatusBarAppearance
to NO
. This will hide status bar for your app.
这篇关于隐藏状态栏 iOS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文