Xcode6 Study AutoLayout II

Source: Internet
Author: User

Contact AutoLayout Now

Create three sizes of the same label distance at bottom 20, spacing of 20



Use the Pin toolbar to add equal size, spacing.

Step 1: Hold down SHIFT and select three labels




Step 2: Add a Constraint

The effect of adding is as follows:



To add the two labels that you added after you add an alignment constraint

Step 3: Add the top (bottom) alignment constraint




After adding the finished effect:



Don't worry, just add the left and right spacing constraints.

Step 4: Add left and right spacing 20



Okay, now run and look at the effect.




Currently for the iphone AutoLayout I can do for the time being almost this, about sizeclass a variety of screens to continue to learn. Mostly yes or a lot of practice, the courage to Practice





Xcode6 Study AutoLayout II

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.