iOS UI the adaptive and layout
users often want to rotate the screen,the content in theUI view is not reduced,theUI View Control can adjust the layout according to the current device orientation, if there is no
Adaptive and Automatic layout, when the user rotates the screen, some controls are missing, which makes the user feel that they have lost control of the app , thus giving your app
The impact is very bad.
Adaptive size class brings you the gospel.
Imagine Apple device iPad iphone 6 Plus iphone 6 iPhone5 iphone5s iphone4s, How to use size class< /c10>
to represent their different uses; first, the use of equipment is nothing more than a horizontal screen and vertical screen, the important difference between horizontal screen and vertical screen is for people's aspect ratio
changed,size class defines two size class ,regular,compact, through these two Size class , we can
indicate the use of the size class for different devices .
IPad whether the horizontal screen or the vertical screen are: Regular Width , Regular Height ;
IPhone 6 Plus Vertical screen: Regular Height , Compact Width ;
IPhone 6 Plus Horizontal screen: Regular Width , Compact Height ;
iphone 6, iphone 5, and iphone 4s Vertical screen: compact width and regular height
iphone 6, iphone 5, and iphone 4s Horizontal screen: Compact width and compact height
When you design the UI in storyboard , you can specify different scenarios to design the size layout and display of the UI controls, This way, when the device is in a different usage situation ,
the UI control is re-laid out according to the scenario you designed .
There are a few things to keep in mind about a good user experience:
1. each page to focus on the user's concern: This priority, users use your app is that it cares about the content, if you randomly change the focus, will let the user do not know how to do
2. Avoid unreasonable changes in layout: You can change the size of the UI control
3. If you only want your app to run in one Direction, specify that it can be used in one direction at development time.
4. The user is very convenient to focus on the content of care
5. Display the UI with a relatively balanced size color
6. Use the alignment, hierarchy, and ladder relationship layout UI,
7. must ensure that users understand the main content in the default size
8. A view with text content that changes size according to the content is variable.
9. Avoid inconsistent appearance as much as possible, UI with the same functionality and Operation should have the same style, such as the number buttons for dialing keys are the same style.
10.UI the layout of the control cannot be too compact, otherwise the user is prone to wrong clicks and misoperation.
Adaptive and layout of iOS UI