Search code examples
iosiphonexcodestatusbar

iPhone adding black space on the top of status bar


Not sure how to explain this, Have added some images below. Not sure what I have changed but it seems my app has now got black bar above and below the app. Before the status bar was sitting on the top of the device. I have tried playing around with the auto layout but didnt seems to help at all. can some one please help.

old screen

new screen


Solution

  • You need to support the iPhone 5 screen size (4 inches).

    Add a launch image with the appropriate size (look in your image assets folder) and your app will then adapt to this device's screen.

    Note that you should also support the new iPhone 6 and 6 Plus screens sizes and add the appropriate launch images.