Masonry 约束冲突,怎么能够快速定位到问题控件,太难找了!!更诡异的是,我把相关的控件都注释掉了,这个约束冲突还存在,太诡异了!!!
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.
(
"<MASLayoutConstraint:0x7ff43e265c10 UILabel:0x7ff43e2673a0.top == SGStoreDetailInfoView:0x7ff43e267080.top + 14>",
"<MASLayoutConstraint:0x7ff43e27ab50 UILabel:0x7ff43e2673a0.top == SGStoreDetailInfoView:0x7ff43e267080.top + 10>"
)
这个说明已经很清楚了,有两个 top 约束,一个要 10 ,一个要 14