1
This commit is contained in:
@@ -22,10 +22,9 @@
|
||||
self.contentView.backgroundColor = [UIColor clearColor];
|
||||
|
||||
[self.contentView addSubview:self.cardView];
|
||||
// self.cardView.backgroundColor = [UIColor redColor];
|
||||
[self.cardView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.equalTo(self.contentView);
|
||||
make.top.equalTo(self.contentView).inset(6);
|
||||
make.top.equalTo(self.contentView).inset(0);
|
||||
make.bottom.equalTo(self.contentView);
|
||||
|
||||
}];
|
||||
@@ -37,11 +36,11 @@
|
||||
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.cardView).offset(16);
|
||||
make.top.equalTo(self.cardView).offset(11);
|
||||
make.bottom.equalTo(self.cardView.mas_centerY).offset(-5);
|
||||
}];
|
||||
[self.priceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.titleLabel);
|
||||
make.top.equalTo(self.titleLabel.mas_bottom).offset(6);
|
||||
make.top.equalTo(self.cardView.mas_centerY).offset(3);
|
||||
}];
|
||||
[self.strikeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.priceLabel.mas_right).offset(10);
|
||||
|
||||
Reference in New Issue
Block a user