Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone 5 - what naming convention the new images have to follow?

What name convention the new images have to have to be loaded by the new iPhone 5?

We see that we have to have 3 default images to be loaded by the device

Default.png
[email protected]  and
[email protected]

what about the other images used by an app?

Is there a naming convention that will automatically load the correct image?

like image 802
Duck Avatar asked Sep 14 '12 20:09

Duck


2 Answers

The new default is [email protected]. (note hyphen)

There is no other corresponding change. If you need a different image for the new iPhone 5 screen then you have to create it as a separate name. There is no 1x/2x/new phone auto switching behavior.

like image 73
jsd Avatar answered Nov 16 '22 09:11

jsd


If you are looking for something similar to ~iPad or ~iPhone (like ~586h) there isn't anything build in like that. But you can easily add it yourself by expanding UIImage class.

Have a look at this source snippet (UIImage+Retina4) for information about how to achieve. Just add this UIImage category and there will be support for ~568h@2x files.

like image 16
miho Avatar answered Nov 16 '22 10:11

miho