How to hide the title bar in the iPhone main window

iphone

Solution

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

[[UIApplication sharedApplication] setStatusBarHidden:YES];

Problem

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

Original source