A step-by-step study of Swift (iii): skillfully using AutoLayout layout

Source: Internet
Author: User

Some beginners often use the AutoLayout, the effect is not very good, often there will be a situation of interface confusion.

This article uses a small example to illustrate the use of AutoLayout

Very simple, just remember the rules can make the interface screen layout, suitable for various iphone phone screen

1. Create a new Swift project (new project in single View application template)

Set the default Viewcontroller in Main.storyboard to the iphone 4-inch size (that is, the screen size of the iphone 5s)

Video Demo Address: http://v.youku.com/v_show/id_XOTI2NTU4MDA4.html

Original from: http://www.cnblogs.com/wuxian/p/4396962.html reproduced on the annotated source

A step-by-step study of Swift (iii): skillfully using AutoLayout layout

Related Article

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.