ankit
ankit

Reputation: 3647

How does iOS handles different versions of image?

I am using three versions of image:

  1. abc.png
  2. [email protected]
  3. [email protected]

I just want to know that if I use abc.png wherever this image is used, does all the versions are automatically picked according to iPhone resolution or I have to make an image asset for this.

I did a Google search but nothing satisfactory found.

Upvotes: 1

Views: 97

Answers (2)

Anand Prakash
Anand Prakash

Reputation: 311

When we use any image in your app it pick the image according to the device resolution which set constraint by the APPle Inc. The Asset is listed below for more clarity:

  1. iPad 2 and iPad mini (@1x)
  2. iPad (Air) and iPad mini (Retina) (@2x)
  3. iPhone 4s (@2x)
  4. iPhone 6 and iPhone 5 (@2x)
  5. iPhone 6 Plus (@3x)

For all images and icons, the PNG format is recommended. You should avoid using interlaced PNGs. I wish it'll help you.Let me know if further more concern.

Upvotes: 2

Darshan Karekar
Darshan Karekar

Reputation: 681

only write @"abc". it selects the desired image automatically

Upvotes: 0

Related Questions