Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS10.3下多个UILabel换行布局会失效报错 #187

Open
oucaizi1108 opened this issue Apr 25, 2017 · 2 comments
Open

iOS10.3下多个UILabel换行布局会失效报错 #187

oucaizi1108 opened this issue Apr 25, 2017 · 2 comments
Labels

Comments

@oucaizi1108
Copy link

[LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is 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:0x608000494500 UITableViewCellContentView:0x7fa648c16990.width == 320 (active)>",
"<NSLayoutConstraint:0x60000029d650 'UIView-Encapsulated-Layout-Width' UITableViewCellContentView:0x7fa648c16990.width == 0 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x608000494500 UITableViewCellContentView:0x7fa648c16990.width == 320 (active)>

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> may also be helpful.

@roygwsidev
Copy link

Have you solve this issue? I'm also stuck with same error.

@liloew
Copy link

liloew commented Jul 11, 2017

Coud you file your layout code? @oucaizi1108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants