控制台总是打印如下,感觉很不爽。
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:0x11a7ec3e0 V:[UIView:0x11a7b2680(-2)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x11a7ec3e0 V:[UIView:0x11a7b2680(-2)]>
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.
本文详细解析了在iOS开发过程中遇到的AutoLayout约束冲突问题,特别是针对cell内含有文字可变的Label和图片数目不定的View时出现的问题,并提供了解决方案。

7184

被折叠的 条评论
为什么被折叠?



