AutoLayout Automatic Layout

Source: Internet
Author: User

AutoLayout has two core concepts:

Reference

Constraints

When the option to use Auto layout is selected, there are two more things left: Top layout Guide and Bottom layout guide

To represent the above and below ranges, click Top Layout Guide to find a line below the status bar. When you add a constraint, it is relative to the line.

How to delete a constraint: Select a constraint and press the DELETE key to

In the event of a warning, you can click the top button to fix it with update frames.

A second reference appears when the control to be constrained is below the top layout guide, and does not appear if the control's position exceeds the reference.

When adding a constraint, the default is to select the constrain to margins option so that when the left side wants to reach the edge, the value should be written as a negative number.

Or remove this option and fill in the value 0.

Reference: When you want a control to reference the position and size of another control, select more than two controls so that you can set

A reference to the selected control.

Reference not finished .... Continue tomorrow.

AutoLayout Automatic Layout

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.