[英]How can I make my iPhone app use the whole screen (no status bar)?
How can I make my iPhone app use the full screen? 如何让我的iPhone应用程序使用全屏? I don't want to see time and signal bar. 我不想看时间和信号栏。
The interface builder by default creates 460*320 view.... change that to 480*320 and align the views.... 默认情况下,界面构建器创建460 * 320视图....将其更改为480 * 320并对齐视图....
Set the property in your plist.info for UIStatusBarHidden to true. 将plist.info中的属性设置为UIStatusBarHidden为true。
将plist.info中的属性设置为UIStatusBarHidden
为true
。
I think you can also do that by changing the info.plist file. 我想你也可以通过更改info.plist文件来做到这一点。
I added a line, for "status bar is initially hidden" and checked the box next to it. 我添加了一行,因为“状态栏最初是隐藏的”并选中了旁边的框。
在您的代码中使用:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.