开发者

Iphone programming: remove bar

开发者 https://www.devze.com 2023-03-30 17:11 出处:网络
I\'m not sure what it is ca开发者_开发百科lled, but there is a bar at the top of the iphone screen with the time and battery. What is the simplest way to remove it?In your Info.plist file, set UIStatu

I'm not sure what it is ca开发者_开发百科lled, but there is a bar at the top of the iphone screen with the time and battery. What is the simplest way to remove it?


In your Info.plist file, set UIStatusBarHidden to true. Also, you might have to add this in your app delegate:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

As a reminder, you might have to change the height in your NIB file since the bar is hidden. It might not change it automatically.


Go to your applicationDidFinishLaunching: in you app delegate and write this code..

[[UIApplication sharedApplication] setStatusBarHidden:YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消