修复warning:Constraint referencing items turned off in current configuration

出现原因 这个问题大多数是因为使用了 xib 的 Trait Variations 属性,并且出现了控件的 install 与相应的 NSLayoutConstraint 的 install 不配对引起的。 解决方法 通过编译日志快速找到出问题的 NSLayoutConstraint,然后修改其 install 与相应控件的 install 匹配。
相关文章
相关标签/搜索