没有状态栏在手机差距? [英] no status bar in phone gap?
问题描述
我一直在试图让状态栏消失,因为我想要一个全屏的游戏。
我使用phonegap为iphone
ps:我对objective-c不太好,所以请给出简单的答案。
您可以尝试:
1)调用:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]
2)或此视图控制器。
[self setWantsFullScreenLayout:YES];
3)你可以从界面生成器。以下是一段视频:
http://www.youtube.com/watch?v=aPAChohC- 4Q
4)有人问了同样的问题,并得到了一些相关的答案:
全屏UIView,状态栏和导航栏叠加在顶部
I have been trying to get the status bar to go away as i want to put a fullscreen game in. i'm using phonegap for the iphone
thanks in advance.
p.s: i'm not that good with objective-c so please give simple answers.
You can try:
1) call this:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]
2) or this from your view controller.
[self setWantsFullScreenLayout:YES];
3) You can do it from the Interface Builder. Here's a video about it: http://www.youtube.com/watch?v=aPAChohC-4Q
4) Someone else asked the same thing and got some related answers: Fullscreen UIView with Status bar and Navigation Bar overlay on the top
这篇关于没有状态栏在手机差距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!