问题:- (void)layoutSubviews中添加约束, - (void)touchSelectedButton:(UIButton *)sender中使用mas_updateConstraints来修改高度,修改无效,控制台提示:Unable to simultaneously satisfy constraints.
控制台打印解决:删掉- (void)layoutSubviews里make.height.equalTo(@0)的约.后边有需要updated的就不需要在开始的- (void)layoutSubviews里添加该项约束了.
网友评论