iOS Design Annotation processing method

Source: Internet
Author: User

If the design only gives 3x design drawings

There are several ways to handle a 2x adaptation :

    1. According to the logical pixel, the size does not change, for example 3x mobile phone on a diagram of the logical pixel set to 24x24point, then the 2x phone on the size of the picture is also set to 24x24point, generally for a view of the height of the case, For example, the bottom tab bar of an app or the navigation bar above. A small risk is that the 2x mobile phone may be somewhat crowded or even coincident on the landscape. This can be problematic if the logical pixel size is not changed.
    2. Scaling, such as 3x on the phone , such as 6p, A view of the size of 414x414, then 2x on the phone , such as IPhone6, The size of this view is 375x375, which is suitable for widths equal to the width of thedevice (or a percentage of the device's width), which is calculated proportionally, such as the various cards in the information flow.

A simple summary: A view that can be crossed (highly fixed) can be laid out in the same logical pixel size, which is the simplest way to write code,

Vertical view (fixed width) to scale, the pop-up class can also keep the logical pixel size unchanged .small screen mobile phone to reduce the width and height

iOS Design Annotation processing method

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.