将UIApplication statusBarHidden设置为YES在iOS 7中不起作用 [英] Setting UIApplication statusBarHidden to YES does not work in iOS 7
本文介绍了将UIApplication statusBarHidden设置为YES在iOS 7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用
[UIApplication sharedApplication].statusBarHidden = YES;
当用户在iOS 6中输入特定的UIViewControllers时隐藏状态栏并且效果很好。在iOS 7中,它仍然显示半透明叠加。
to hide the status bar when users enter specific UIViewControllers in iOS 6 and it worked great. In iOS 7 however it still shows a translucent overlay.
推荐答案
EDITED :::
EDITED:::
这是新的更新答案:
在plist文件中执行
that is new updated answer :
Do in plist file
查看基于控制器的状态栏外观到NO
和写代码
"View controller-based status bar appearance" to NO and write code
[UIApplication sharedApplication].statusBarHidden = YES;
appdelegate中的
$ b
in appdelegate
这篇关于将UIApplication statusBarHidden设置为YES在iOS 7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文