3
votes

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
How are you accessing the images?rmaddy
For now i just using @2X and simple image nameVandit Mehta
No, I mean what code is used or how/where do you reference the images?rmaddy
I just give the image name in my xib or story board fileVandit Mehta
My simple question is that , we use @2X for 1334x750 pixels, 1136x640 pixels, and 960x640 pixels resolutions then "How iOS will differ the image that where to place which image?"Vandit Mehta

2 Answers

4
votes

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
votes

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