What do you do to hide the status bar in iPhone application. If you build your views in Interface builder, you can set the status bar to None, but notice that above status bar menu it says: Simulated Interface Elements. That means, that it will only show a change in Interface Builder but not in a compiled application.
You have two options to hide the status bar, one is by editing info.plist file you have (typically in Resources Group). You can either open it up in TextEdit (or any other text editor) and add this value under dict XML tag:
<key>UIStatusBarHidden</key> <true />
Other option is to open info.plist file by double clicking it and adding a new variable to the Information Property List. And under key type (or select from drop down menu) Status bar is initially hidden and check the checkbox (thus setting it’s property to true).
Last option is to do it programmatically inside one of your classes by:
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
By changing BOOL value of setStatusBarHidden to NO, you are able to show the hidden status bar:
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
If you want to change the style of iPhone status bar you can once again edit info.plist and add for Opaque black style the following:
for Transparent black style (alpha of 0.5) add:
Again you can add status bar style by double clicking info.plist and selecting from dropdown menu Status bar style as Key and selecting prefered style as the value (again from the dropdown).