Cocos2d游戏在iOS7中不隐藏状态栏 [英] Cocos2d games in iOS7 not hide status bar
本文介绍了Cocos2d游戏在iOS7中不隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在cocos2d iOS7游戏中隐藏状态栏?这个问题在iOS6及以下版本中没有。
How to hide status bar in cocos2d iOS7 games? This problem is not observed in iOS6 and below.
[[UIApplication sharedApplication] setStatusBarHidden: YES];
推荐答案
< >解决方案
解决方案
它简单... ...在info.plist中添加下面一行
Its simple...…add below line in info.plist
View controller-based status bar appearance NO
ScreenShot:
ScreenShot:
这篇关于Cocos2d游戏在iOS7中不隐藏状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文