1. How is this compact,any,regular used in practice?
W:any H:any is the default choice when we first set up the project, which is the parent of all descriptions. Other kinds of descriptions are based on this change, such as: if weight is set to any,height regular, Then the interface element in this state will exist in the state where the height is regular, whether weight is regular or compact. So:
W:compact h:compact-(W:any h:compact, W:compact h:any, W:any h:any)
W:regular h:compact-(W:any h:compact, W:regular h:any, W:any h:any)
W:compact h:regular-(W:any h:regular, W:compact h:any, W:any h:any)
W:regular h:regular-(W:any h:regular, W:regular h:any, W:any h:any)
2. Look at a set of data and a picture (given by a blogger abroad, very image):
Iphone4s,iphone5/5s,iphone6
Vertical screen: (w:compact h:regular)
Horizontal screen: (W:compact h:compact)
IPhone6 Plus
Vertical screen: (w:compact h:regular)
Horizontal screen: (W:regular h:compact)
Ipad
Vertical screen: (W:regular h:regular)
Horizontal screen: (W:regular h:regular)
3. Can be summed up as:
If the item does not support horizontal display, use W:compact h:regular (or simply cancel using size Class)
If the project supports horizontal screen display, use W:compact h:regular+w:any h:compact
For some public constraints (applicable in any combination), they are generally set in the W:any H:any
ipad in the same vein
So, I think the biggest help with size class is to solve the cross-screen adaptation and share a design board with the iphone ipad ... (Personal opinion)
Test Feedback One
1. First, set up a project to start the following page
PS: This is a new feature of iOS8, really used in the project need to abandon compatible iOS7 ... Obviously, it's not going to work right now.
2. In any case, place a label and set the constraint on-left-bottom-right is 0-0-20-0
3. In the compact any case, place a label and set the constraint to 20
5. Finally switch to regular any to complete the 6 Plus horizontal screen display
Test Feedback Two
Test one inside, verify the concept of the various screens applicable to the combination, next, is a size Class to solve the magical use of horizontal screen
PS: Used in, horizontal screen adaptation, re-typesetting the vertical screen when the UI layout
In addition to changing the constraints under different combinations, you can change whether the controls are displayed under different combinations
Test Feedback Three
AutoLayout here does not give specific how to set up, because do not know how to write, feel or everyone to write more, to try, the most effective
A plot of the AutoLayout setting is given below
AutoLayout Use detailed