Xcode 4 – Hide the status bar
Published on July 19th, 2011
I was looking for a quick way to fully hide the iPhone – or rather, iOS – status bar from my App. This method has changed from Xcode 3 to 4. The new method is adding a line to your info.plist file.
Add a new line by clicking the plus symbol on the last variable, a new line will be added. Enter the key value
UIStatusBarHidden. This key will automatically convert to
Status bar is initially hidden. Change the type to Boolean and change the value to
Your status bar is now hidden from startup. You can always get the status bar back with setStatusBarHidden:withAnimation: which belongs to the UIApplication Class.