为什么状态栏STILL在Default.png期间显示? [英] Why is the Status Bar STILL showing during Default.png?

查看:167
本文介绍了为什么状态栏STILL在Default.png期间显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很确定我采取了所有步骤正确设置我的状态栏为隐藏。我在info.plist文件(将UIStatusBarHidden设置为布尔值为TRUE)以及Application Delegate中的applicationDidFinishLaunching方法中都执行了以下操作:

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

状态栏确实隐藏 - 只是不够快。尽管采取了上述步骤,但在应用程序启动时,在显示 Default.png 默认映像期间,状态栏仍然显示为约一秒。这看起来很粘,我想确保状态栏在运行应用程序时不会随时显示。



我尝试过的许多应用程序成功地隐藏状态栏(甚至在显示default.png时甚至不显示),但是无法弄清楚如何。以前有人处理这个问题吗?

解决方案

你有没有想过这个?我做的是让它工作是在TextMate而不是Xcode中编辑Info.plist文件。我添加了以下两行:

 
< key> UIStatusBarHidden< / key>
< true />

我认为与上面提供的答案不同的是,我使用的是一个文本编辑器而不是Xcode。当您随后在Xcode中查看Info.plist时,您将在UIStatusBarHidden旁边看到一个复选标记,而不是一个字符串。可能有一种方法可以直接在Xcode中执行,但我不知道是什么。


I'm pretty sure that I've taken all steps to correctly set my status bar to hidden. I did this in both the info.plist file (setting a UIStatusBarHidden to a boolean TRUE) as well as in the applicationDidFinishLaunching method in the Application Delegate using:

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

And the status bar does hide -- only not quick enough. Despite the steps taken above, when the app is launched, the status bar is STILL being displayed for about a second during the displaying of the Default.png default image. This looks tacky, and I want to make sure the status bar does not get displayed at any time during the running of the app.

Many apps I've tried ARE hiding the status bar successfully (doesn't even show during the display of default.png) but I can't figure out how. Anyone deal with this issue before?

解决方案

Did you figure this out already? What I did to get it to work is edit the Info.plist file in TextMate rather than in Xcode. I added the following two lines:

<key>UIStatusBarHidden</key>
<true/>

I think the only thing different from the answers given above is that I used a text editor rather than Xcode. When you subsequently look at Info.plist in Xcode, you will see a check mark next to UIStatusBarHidden rather than a string. There is probably a way to do this directly in Xcode, but I don't know what it is.

这篇关于为什么状态栏STILL在Default.png期间显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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