即使UIStatusBarHidden为YES,如何防止iOS 5显示状态栏? [英] How to prevent iOS 5 from showing the status bar even though UIStatusBarHidden is YES?

查看:290
本文介绍了即使UIStatusBarHidden为YES,如何防止iOS 5显示状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有些用户报告iOS 5有时会显示状态栏。

Some users reported that iOS 5 sometimes shows the status bar.

在我的Info.plist中,UIStatusBarHidden键为YES,我从不搞乱状态栏在代码中。

In my Info.plist the UIStatusBarHidden key is YES, and I never mess around with the status bar in code.

我该怎么做才能解决这个问题?

What can I do to fix that?

推荐答案

Info.plist中的条目应足以隐藏它,但您可以尝试以编程方式执行:

the entry in the Info.plist should be enough to hide it, but you can try doing it programmatically with:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];  

这篇关于即使UIStatusBarHidden为YES,如何防止iOS 5显示状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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