Automatic layout error (two lines conflict): Unable to simultaneously satisfy constraints

Source: Internet
Author: User

This error is somewhat long:

Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list are one you don ' t want.
Try this:
(1) Look at each constraint and try to figure out which you don ' t expect;
(2) Find the code that added the unwanted constraint or constraints and fix it.
"<nslayoutconstraint:0x600000096580 h:[uibutton:0x7fc8eb408a50 ' button ']-(2)-| (Active, names: ' | ': uiview:0x7fc8eb40d330) > ",
"<nslayoutconstraint:0x600000096670 h:[uibutton:0x7fc8eb408a50 ' button ']-(3)-| (Active, names: ' | ': uiview:0x7fc8eb40d330) > "

Would attempt to recover by breaking constraint
<nslayoutconstraint:0x600000096670 h:[uibutton:0x7fc8eb408a50 ' Button '-(3)-| (Active, names: ' | ': uiview:0x7fc8eb40d330) >

Make a symbolic breakpoint at uiviewalertforunsatisfiableconstraints to catch this in the debugger.
The methods in the Uiconstraintbasedlayoutdebugging category on UIView listed in <UIKit/UIView.h> could also be helpfu L.

My error reason: is agreed to the margin connected with two lines (2 conflicting constrains);

Click on the yellow warning (?? ), find the conflicting lines, check, and easily find the problem.

It appears to be a direct red error, now is the yellow warning?

Automatic layout error (two lines conflict): Unable to simultaneously satisfy constraints

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: 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.