Andrew
Andrew

Reputation: 708

Iphone programming: remove bar

I'm not sure what it is called, 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?

Upvotes: 16

Views: 312

Answers (2)

Book Of Zeus
Book Of Zeus

Reputation: 49877

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.

Upvotes: 53

sicKo
sicKo

Reputation: 1256

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

[[UIApplication sharedApplication] setStatusBarHidden:YES];

Upvotes: 8

Related Questions