我有没有办法标记"标签"观点,以便我可以更好地确定哪些约束存在问题?
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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x10bf8a6f0 H:|-(0)-[UIScrollView:0x10bf84a60] (Names: '|':UITableViewCellContentView:0x10bf89940 )>",
"<NSLayoutConstraint:0x10bf8a790 H:[UIScrollView:0x10bf84a60(560)]>",
"<NSLayoutConstraint:0x10bf8a740 H:[UIScrollView:0x10bf84a60]-(0)-| (Names: '|':UITableViewCellContentView:0x10bf89940 )>",
"<NSLayoutConstraint:0x10f512090 'UIView-Encapsulated-Layout-Width' H:[UITableViewCellContentView:0x10bf89940(320)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x10bf8a740 H:[UIScrollView:0x10bf84a60]-(0)-| (Names: '|':UITableViewCellContentView:0x10bf89940 )>
在这种情况下,我发现了问题,但并不总是那么明显。或者对我来说,唯一的方法是使用它的指针地址对每个人进行NSLog,然后进行比较?
由于