LayoutConstraints error
Closed this issue · 2 comments
batjo commented
Hi,
First of all thanks for your work. I noticed in the console that there are some constraints issues when debugging on an iPhone 7 Plus. On the iPhone SE and iPhone 7 it works great.
2016-12-07 11:42:48.654093 Declaree[76156:10776122] [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:0x608000495a90 UILabel:0x7f897b6b0830'Date'.height == 43 (active)>",
"<NSLayoutConstraint:0x608000495b30 V:|-(0)-[UILabel:0x7f897b6b0830'Date'] (active, names: '|':UITableViewCellContentView:0x7f897b6c6720 )>",
"<NSLayoutConstraint:0x608000495540 V:[UILabel:0x7f897b6b0830'Date']-(0)-[UIView:0x7f897b6b0d30] (active)>",
"<NSLayoutConstraint:0x608000495590 UIView:0x7f897b6b0d30.bottom == UITableViewCellContentView:0x7f897b6c6720.bottom + 1 (active)>",
"<NSLayoutConstraint:0x60000049c4d0 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x7f897b6c6720.height == 42 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x608000495540 V:[UILabel:0x7f897b6b0830'Date']-(0)-[UIView:0x7f897b6b0d30] (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.
DylanVann commented
I can't reproduce this in the example. It may have to do with other constraints you've added.