If the design only gives 3x design drawings
There are several ways to handle a 2x adaptation :
- 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.
- 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