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

出現原因 這個問題大多數是因爲使用了 xib 的 Trait Variations 屬性,並且出現了控件的 install 與相應的 NSLayoutConstraint 的 install 不配對引起的。 解決方法 通過編譯日誌快速找到出問題的 NSLayoutConstraint,然後修改其 install 與相應控件的 install 匹配。
相關文章
相關標籤/搜索