Default.png launch image on iPhone 5

If your app targets to iPhone 5 as well you have to submit a 4 inch retina screenshot as well.

So as Apple documented you have:

To specify default launch images for iPhone 5 and iPod touch (5th generation) devices, include the modifier string -568h immediately after the portion of the filename. Because these devices have Retina displays, the @2x modifier must always be included with launch images for the devices. For example, the default launch image name for a device is Default-568h@2x.png. (If your app has the UILaunchImageFile key in its Info.plist file, replace the Default portion of the string with your custom string.) The -568h modifier should always be the first one in the list. You can also insert other modifiers after the -568h string as described below.

If you want to take a screenshot from iPhone Simulator (in case that you don't have an iPhone 5) just press cmd+S on your simulator.

In addition, you should know that all the other images like backgrounds in your app have to be declared independently that from that fact that include -568h on their filenames.

So you have to use something like this:

if ([[UIScreen mainScreen] bounds].size.height == 568) {
        [[self scrollView] setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg-568h"]]];
    } else {
        [[self scrollView] setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg"]]];
    }

A more elegant solution to Mrs Priya Rajagopal blog, here.

Leave a Reply

Your email address will not be published. Required fields are marked *