Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the title bar in the iPhone main window

Tags:

iphone

This question might be very easy to answer so I apologize if I missed the obvious. I'm developing a GUI application on the iPhone and want to hide the title/status bar of the iPhone which usually displays the carrier/time/battery. How can I do this from within the code given the main UIWindow and UIView?

-A

like image 297
Adi Avatar asked Jul 22 '09 02:07

Adi


People also ask

How do I turn off title bar?

Firefox opens the customization menu in a new tab. Move to this new Customize tab and look at the bottom. You'll see Title Bar option checked. You just need to uncheck this Title Bar option.

How do I hide the status bar on my Iphone?

To completely hide it on the home screen, open up an app, such as Settings, and wait about three to four seconds. Press the home button again, and the status bar will be completely gone.

How do I unhide the title bar?

On Windows, when the Title Bar and Menu Bar are hidden, hold down the Shift key and press the Tab key. The Title bar and Menu bar will appear. On macOS, when the [Title Bar] is hidden, hold down the Shift key and press the Tab key. The Title Bar will appear.


1 Answers

In your Info.plist file, set UIStatusBarHidden to true or add the following to your application delegate:

[[UIApplication sharedApplication] setStatusBarHidden:YES];
like image 95
Matthew Bischoff Avatar answered Oct 16 '22 15:10

Matthew Bischoff