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?
source
share