IOS adapts to various iphone screen sizes

Source: Internet
Author: User

With the increase in Apple products and the increasing number of screen sizes, how do we make our app adapt to different types of apple screen sizes when writing programs?

When Apple gave a solution, a point concept was proposed. A point in 3gs corresponds to one pixel, and a point in 4 (s) corresponds to two pixels. In iOS development, it is more convenient to point as a unit, as @1x in the following table is a point corresponding to a pixel, @2x is a point corresponding to two pixels, and so on. The number of pixels per inch that becomes the PPI. Because the text and color are vector data, the pixels will not be distorted after zooming in, but when the picture will be distorted, so we need to design the app in different sizes of images (one times, twice times the graph, etc.), to ensure that the app's picture without losing its true.

Equipment Diagonal size Logical resolution Scale factor Device resolution
3GS 3.5 320*480 @1x 320*480
4 (S) 3.5 320*480 @2x 640*960
5 (S) 4 320*568 @2x 640*1136
6 4.7 375*667 @2x 750*1334
6Plus 5.5 414*736 @3x 1080*1920

IOS adapts to various iphone screen sizes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.