Search code examples
iosxcodeuiviewcontrollerxcode-storyboard

iOS storyboard - Disable status bar on storyboard once


Is there a way in Xcode when using the Storyboard in the Interface Builder to disable the status bar completely, so that when I create a new View Controller I don't keep having to turn "status bar" from inferred to none.


Solution

  • Have you already checked if setting UIStatusBarHidden to YES in your Info.plist works? See the documentation: http://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW15

    This will hide the status bar on application start.