Issue with iPhone5 and iPhone6 @2x images

260 views Asked by At

What is the official iOS naming convention for(@2X),

iPhone 6 :

667x375 points 1334x750 pixels 2x scale 1334x750 physical pixels 326 physical ppi 4.7"

iPhone 5 :

568x320 points 1136x640 pixels 2x scale 1136x640 physical pixels 326 physical ppi 4.0"

iPhone 4 :

480x320 points 960x640 pixels 2x scale 960x640 physical pixels 326 physical ppi 3.5"

so, that device recognise the image(with @2X) is for iPhone 6, iPhone 5 or iPhone 4?

2

There are 2 answers

1
Dex On BEST ANSWER

There is no publicly exposed way to differentiate your images between the various device sub-types. If you must load a separate image depending upon whether your app is running on an iPhone 4s, 5, or 6, you will need to perform the detection of the device and loading of the proper image entirely in your own code (use the screen size to differentiate).

1
Akshay Bhalotia On

You may try @3x, though I haven't checked it.