当一个子视图的某一个约束是相对父视图,然后更新成相对兄弟视图,发生冲突UIViewAlertForUnsatisfiableConstraints

参考链接:https://www.jianshu.com/p/611fee0c2a60

修复方案:先设置的置为低优先级

代码为:

make.right.offset(0).priorityLow();

更新设置的不添加 priorityLow()这个低优先级设置

猜你喜欢

转载自blog.csdn.net/allanGold/article/details/88693387
今日推荐