[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(@0).priorityHigh();
}];
當妳使用masonry進行布局,運行的時候控制臺如果有輸出約束重復的話,可以用 .priorityHigh()將妳想要布局的約束的優先級提高,就不會報約束重復了。
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(@0).priorityHigh();
}];
當妳使用masonry進行布局,運行的時候控制臺如果有輸出約束重復的話,可以用 .priorityHigh()將妳想要布局的約束的優先級提高,就不會報約束重復了。