下面的调试信息列表:
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:0x170c5d50 V:[UIImageView:0x170c5ca0(87)]>",
"<NSLayoutConstraint:0x170c5f70 UIImageView:0x170c5b60.top == UIImageView:0x170c5900.top>",
"<NSLayoutConstraint:0x170c6000 UIImageView:0x170c5ca0.top == UIImageView:0x170c5b60.top + 10>",
"<NSLayoutConstraint:0x170c6030 V:[UIImageView:0x170c5ca0]-(18)-| (Names: '|':UITableViewCellContentView:0x170c5400 )>",
"<NSLayoutConstraint:0x170c60f0 V:|-(15)-[UIImageView:0x170c5900] (Names: '|':UITableViewCellContentView:0x170c5400 )>",
"<NSAutoresizingMaskLayoutConstraint:0x170c6bd0 h=--& v=--& V:[UITableViewCellContentView:0x170c5400(131)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x170c5d50 V:[UIImageView:0x170c5ca0(87)]>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
我正在做聊天功能。外部ImageView是背景,内部是用户发送的聊天图像。内部从四个侧面固定到外部,并固定到底部的contentView,用于自动调整单元格。同时,在故事板中设置其宽度和高度约束以及内在的imageview模式是aspectfit。这是条件:
我的问题是调试日志表示高度无法应用,为什么?在Autolayout中无法修改UIImageView的高度?非常感谢,感谢您的申请。