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