开发者

Iphone programming: remove bar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜