在TableViewCell自适应高度的时候,报一大堆约束冲突错误,可尝试调整最后一个试图对cell的约束级别
[self.line mas_remakeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(self).offset(12);
make.right.mas_equalTo(self).offset(-12);
make.top.mas_equalTo(self.authorIcon.mas_bottom).offset(15);
make.height.mas_equalTo(0.5);
make.bottom.mas_equalTo(self).priority(500);
}];
网友评论