Search code examples
iphoneiosios6ios7

black space in IOS app in 4inch Screen


I am creating an App for IOS7 for both retina 4inch and 3.5 inch, when my target version is IOS7 every thing wrks fine. But when i set the version below 6.1 then there is a white space at the top and bottom bar. when i run it in IOS6.1 Simulator 4inch i get something like this. I have the Default-568h@2x.png for IOS6.1 and prior also in place. I am using Xcode 5DP

enter image description here

Screen shot when app has target version 7 enter image description here

Any help will be appreciated


Solution

  • To solve this issue you have to specifically add background images for iOS 6, Follow following steps to add this using new xCode.

    1) Add new image set from asset catalog and name it "Default" image set

    2) Right click on that asset catalog image.

    3) Choose iPhone, Retina 4 - inch from options like following

    enter image description here

    4) Add images in sequence with resolutions

    1. 320 * 480

    2. 640 * 960

    3. 640 * 1136

    5) Clean your project

    6) Run your project