IOS Troubleshooter (what Ghost Series)-an issue that cannot be modified from the code after the ADD Size Class customization in Storyboard

Source: Internet
Author: User

Objective

The company's products at the same time to adapt to the IPhone and IPad, and insisted on using Storyboard to do the adaptation, today stepped on a pit (previously encountered) also thought is XCode's ghost problem.

Statement
Welcome reprint, but please keep the original source of the article:)
Blog Park: http://www.cnblogs.com
Farmer Uncle: Http://over140.cnblogs.com

Body

I. Purpose/REQUIREMENTS

In the iphone 4, iphone 6, IPad text with different font size, picture width is also different

Second, the question

As shown: On the Storyboard to set the UILabel on the ipad 18th, the picture on the ipad with 160, and then drag the constraints into the viewcontroller inside, judging by the IPhone 4 fix the constraint value.

However you find in the code no matter how you change the effect!! Clean countless times almost to give up!! Just think will be Add Size Class customization influence, delete really good!

Third, the settlement

What can you do, you can only remove the ADD Size Class customization. Alternatively, you can use the IOS screen to fit the Nslayoutconstraint

IOS Troubleshooter (what Ghost Series)-an issue that cannot be modified from the code after the ADD Size Class customization in Storyboard

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.