I have placed a custom UIView
of 80x80 into a custom UITableViewCell
with the following constraints.
The Content View of is 80 high, while the Safe Area & overall UITableViewCell
is 80.5 high, presumably to account for the line between cells. Xcode does not complain during the build process. I am not setting any other hardcoded constraints elsewhere in the application.
Yet at runtime, these appears to conflict, despite seemingly not appearing incorrect:
[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:0x283f60190 WindDirectionIndicator:0x104f32ac0.height == 80 (active)>",
"<NSLayoutConstraint:0x283f60230 V:[WindDirectionIndicator:0x104f32ac0]-(0)-| (active, names: '|':UITableViewCellContentView:0x104f326d0 )>",
"<NSLayoutConstraint:0x283f60280 V:|-(0)-[WindDirectionIndicator:0x104f32ac0] (active, names: '|':UITableViewCellContentView:0x104f326d0 )>",
"<NSLayoutConstraint:0x283f60550 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x104f326d0.height == 80 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x283f60190 WindDirectionIndicator:0x104f32ac0.height == 80 (active)>
It seems to agree that the bounds are placed at the top and bottom, and both the cell & UIView are 80 high. What am I missing here?