Is there a way to just use images in applications that support iPhone 5?

Possible duplicate:
iPhone 5 - what naming convention should new images have?

I just downloaded the new xcode and I added a new splash screen for the new screen size. So now I have 3 files:

Default.png, Default@2x.png , Default-568h@2x.png

So far, if I wanted to do UIImage with it, I could just do this:

UIImage *img = [UIImage imageNamed: @"Default"];

and Default.png or Default@2x.png were automatically selected depending on the type of iphone that was executed in the application. But now with the new screen size, of course, it still works for a regular screen / retina, but not with 4-inch screens. How can I detect when the application launches on iphone 5 and then use the * -568h image?

+5
source share
1 answer

You just need to add Default-568h@2x.pngimage size 640 x 1136 px. In Xcode 4.5, you can also find a new field for the 4-inch launch image in the summary pivot table.

0
source

All Articles