0

我使用情节提要在视图控制器的视图中创建了一个容器(UIView *),并将容器高度约束设置为大于或等于但之后我得到了两个约束,一个大于 用户约束,另一个相等高度这不是用户约束,因此无法删除。为什么会有这种行为?

我问这个是因为我收到了这个日志错误

 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:0xa49af60 V:[UIView:0xa4a9300(30)]>",

...

这表明尽管我有更大的约束,但固定高度仍然存在。

4

0 回答 0