Unable to simultaneously satisfy constraints.错误处理

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.
(
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    "",
    ""``
)

Will attempt to recover by breaking constraint

看到开头的报错信息, 是说不能同时满足我的约束条件,让我从下面列出的的约束条件中找出我不想要的,然后修复它。 于是我就挨个检查了每个约束条件, 去掉了不必要的约束条件, 但仍是一直报错。 最后发现了这句话:
Will attempt to recover by breaking constraint 这句话是说尝试打破下面的约束来进行修复, 这才找到问题所在。 对于这个这个UIImageView 我在cell中约束的值的高度是100,但是在实际的使用中,它的实际值却是200 ,所以会有约束冲突报错。
解决的办法就是降低这个约束的优先级(Priority),当系统实际计算 的高度与我设置的约束值不一样时, 取系统的值, 就不会再报错了。
修改方式如下:
选中要修改的约束,将其值调低(999)即可。

Unable to simultaneously satisfy constraints.错误处理_第1张图片
Snip20170313_3.png

你可能感兴趣的:(Unable to simultaneously satisfy constraints.错误处理)