Search code examples
iphonexcodeipadstatusbarcontainer-view

iPad Layout has a gap where status bar used to be


I created this basic app using xcode 4.6 that represents the exact layout of my real app. The only two alterations I made were to uncheck "navigation bar visible" from the initial navigation controller and to choose "status bar: none" for the second navigation controller. enter image description here

As you can see below, there is a blank space where the status bar used to be in the container view. enter image description here

Please create this simple app for yourself and identify what exactly needs to change to get rid of the white gap. It represents the last bug before I can release my app. Thank you for your assistance.


Solution

  • if you dont want to show status bar then hide it from plist by setting "hide status bar initially " property to "YES"

    go to Info.plist file.

    set "Status bar is initially hidden" value= YES

    it will remove that gap