What types / sizes of images do you need when using full-screen UIImage?

I am targeting iOS8 to release the application. Thus, it will be available on 4, 5, 6, 6 and iPad 2+.

I have a ViewController where I present a UIImageView , i.e. the entire size of my UIViewController View.

My question is: what sizes do I need for the image. Will I need a special size for each device? Or does 4s / 5/6 use the same coefficients, while 6+ has its own unique coefficient? Or am I just using 1 image size and letting it automatically scale it (or does it stretch / distort the image)?

Also, what is the minimum image size? If it is smaller than the iPhone 6+’s own size, will the image quality deteriorate?

+6
source share
3 answers

In iOS8, you can use different size classes for different screens

use post to get started.

Also see this for more information on using different graphics for different resolutions.

+1
source

you need a special size for each device using image.xcassets. And that will help you a lot - https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

0
source

The image in Imageview on 4s / 5/6 displays at @ 2x, while in 6+ it displays at @ 3x. Get the image and name it as Demo@2x.png and another image for 6+ with a higher resolution, name it Demo@3x.png.So. When the image is placed in the image, it will automatically take Demo@2x.png for 4s / 5/6 and Demo@3x.png for 6+.

0
source

Source: https://habr.com/ru/post/988757/


All Articles