简体   繁体   中英

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? I don't want to see time and signal bar.

  1. The interface builder by default creates 460*320 view.... change that to 480*320 and align the views....

  2. Set the property in your plist.info for UIStatusBarHidden to true.

将plist.info中的属性设置为UIStatusBarHiddentrue

I think you can also do that by changing the info.plist file.

I added a line, for "status bar is initially hidden" and checked the box next to it.

在您的代码中使用:

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM