在升級xcode8之前的代碼(網上找不到相關問題??)
//cell自身的約束
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.top.trailing.equalTo(self);
make.bottom.equalTo(marginView);
}];
xcode8后必須要設置全才能正常顯示
<能解決問題,但是會有約束沖突>
//cell自身的約束
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.leading.top.trailing..bottom.equalTo(self);
make.edges.equalTo(self);
make.bottom.equalTo(marginView);
}];
希望可以幫到同樣掉坑的人????
有用的話就like吧!