IOS easily generates crash when using Interface Builder to create too complex constrains

Source: Internet
Author: User

Today write the program, encountered crash, in the interface initialization will not have, want to switch to another tab page error. The main contents are as follows:

Cannot find a outgoing row head for incoming head uiimageview:0x156caec0. WIDTH{ID:103}, which should never happen.

Check the night did not find out the real reason, finally removed from the Xib 2 view, the system is normal. I think, probably using too much uncertainty constraint, these constraint for the human brain is understandable, but for the machine is more uncertain, when the system requires rapid response, it may cause problems. This bug can only be tested with the exclusion method a little. Maybe this is the bug of Xcode ...

Also, say a question about the establishment of constraint.

The position of the button below is fixed, I want to use the position of the button to calculate the bottom position of the label, so I select the label, add the constraint, but add the effect:

The created constraint equation is reversed, but it's just a matter of creating a relationship, so it's no problem! Don't think there's a mistake here.

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.