New image name for iPhone 5 New image name for iPhone 5 xcode xcode

New image name for iPhone 5


No special suffix for iPhone 5 (4'' display), just the specific Default-568h@2x.png file.

Here's a macro to handle it:

// iPhone 5 support#define ASSET_BY_SCREEN_HEIGHT(regular, longScreen) (([[UIScreen mainScreen] bounds].size.height <= 480.0) ? regular : longScreen)

Usage: (assets names - image.png, image@2x.png, image-568h@2x.png)

myImage = [UIImage imageNamed:ASSET_BY_SCREEN_HEIGHT(@"image",@"image-568h")];


There is no specific image name. Having the Default-568h@2x will launch that image on an iPhone 5 or iPod Touch 5G and will enable the non-letterbox mode. After that, you need to design your views to be flexible. There is no special "image name" or anything for the new size.

For your background, for example, you should probably be using an image that is capable of stretching or tiling and have it configured properly before setting it.


iPhone 5 does not have a different pixel density, it's the same retina display PPI as the iPhone 4/4S, it's just a different screen size. The @2x images will be used on iPhone 5 as well as 4/4S.