隐藏状态栏iOS 7 [英] Hiding status bar iOS 7

查看:91
本文介绍了隐藏状态栏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 设置为。这将隐藏您应用的状态栏。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆