Precautions and details in using the Sizeclass process
* Size classes is supported starting from iOS8
* Size classes essence is to classify all the screens, we can set different constraints for different types of screens
* Just sort the screen and actually arrange the UI elements to use AutoLayout
* No longer has the concept of the screen size
* No longer have the concept of specific size, only the concept of abstract size
* Divide the width and height into 3 different cases
1> any (can be either compact or regular), typically denoted by *
The 2> Compact (compact, small), general-indicated
3> Regular (normal, large), generally with + denotes
4> * * Note:
In general, do not set constraints under Wany and Hany, or if you set constraints under Wany and Hany, then setting constraints on other screen sizes creates a conflict. Because the constraints will be inherited.
The inheritance relationship of the constraint (* symbol means + or-):
* *: All 8 Other cases will be inherited
*-: will be--\ +-Inherit
+ *: will be +-\ + + Inherit
Compact width and Height--
Suitable for mobile phone 3.5/4/4.7 horizontal screen
*-Compact High
Applies to all mobile phone horizontal screen
-+ Normal width Compact high
For mobile phone 5.5 horizontal screen
-* Compact, wide, arbitrarily high
For 3.5/4/4.7 mobile phone horizontal screen and vertical screen
* * Available on all screens
+* for ipad flat screen and vertical screen
-+ Compact width Normal high
Vertical screen for all phones
*+ for all vertical screens of mobile phones and ipad
+ + screen for ipad
ios/xcode/sizeclass/Introduction