ios/xcode/sizeclass/Introduction

Source: Internet
Author: User

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

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.