Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 743
Andrew Avatar asked Aug 26 '11 01:08

Andrew


People also ask

Can I remove the bar on iPhone?

Can You Get Rid of the Bottom Bar on an iPhone? The iPhone does not have a setting you can enable or disable to control the display of the bottom bar. Developers can write code that auto-hides the bar on some apps.

How do I make the app bar go away?

In the SureLock Settings screen, navigate to Miscellaneous Settings. Check Use Advance Hide Bottom Bar option to enable it. Once done, the bottom bar on the device will be hidden.


2 Answers

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.

like image 149
Book Of Zeus Avatar answered Oct 20 '22 03:10

Book Of Zeus


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

[[UIApplication sharedApplication] setStatusBarHidden:YES];
like image 29
sicKo Avatar answered Oct 20 '22 02:10

sicKo