Tableview在iphone5中顯示,但在iphone 5以外,我得到這個警告。有人知道這是什麼警告?Autolayouts警告,無法同時滿足約束
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:0x60800008a820 UIImageView:0x7f8193515be0.height == 0.75*UITableViewCellContentView:0x7f81935153f0.height - 21 (active)>",
"<NSLayoutConstraint:0x60800008d2a0 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x7f81935153f0.height == 0.5 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60800008d2a0 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x7f81935153f0.height == 0.5 (active)>
可能重複[無法同時滿足約束,將嘗試通過打破約束來恢復](https://stackoverflow.com/questions/11664115/unable-to-simultaneously-satisfy-constraints-will-attempt-to-通過中斷恢復) –
請參閱以下相關鏈接 https://stackoverflow.com/a/36863042/8472539 https://stackoverflow.com/a/14327470/8472539 – Bin0li