Auto layout issues with the UI in iOS

Source: Internet
Author: User

2016-04-08 First Contact to iOS UI development, followed the teacher's video wrote a mobile control applet, as a result of not watching the video resulting in an error, the specific process:

Found that no matter how to click Btn2, can not let btn1 left, and the same function of the BTN3 will be able to normal btn1 left

The cause of the problem is very simple, in the new Proj when the auto layout is not turned off, you can

First Mediation Property Bar, click Btn2, jump to Btn2 's property page, and then click on file Inspector, in the area shown, uncheck the Use auto layout, uncheck Yes, will pop up the prompt box, the general meaning is if you uncheck use Auto layout that Also, to cancel the use of size Classes, select Disable Size Classes.

In this way, btn2 with the same function as BTN3 can also move btn1.

However, this is only a beginner UI approach, if you learn the UI advanced, there are other solutions, here will not repeat.

Auto layout issues with the UI in iOS

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.