Search code examples
xcodestatusbar

Status Bar Not Hiding


I am having this trouble hiding the status bar. It is still showing up in the simulator and on the iphone.

I made sure in my .plist files that

"Status Bar Is Initially Hidden : YES"
"View controller-based status bar appearance : NO"

Solution

  • The plist value is only specifying to hide the status bar when launching – in your application delegate, you need to set the status bar to hidden:

        [[UIApplication sharedApplication] setStatusBarHidden:YES];