个播房坑位的约束调整

This commit is contained in:
chenguilong
2022-03-15 16:17:03 +08:00
parent c624c86d54
commit 687f64355b
4 changed files with 7 additions and 14 deletions

View File

@@ -205,4 +205,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 8120dbc8eb506e124ccb97e8ce2ecf2420ac8b5f
COCOAPODS: 1.11.0
COCOAPODS: 1.11.2

View File

@@ -36,7 +36,7 @@
- (void)initSubViewConstraints {
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.mas_equalTo(self).inset(15);
make.left.right.mas_equalTo(self).inset(15).priority(500);
make.bottom.top.mas_equalTo(0);
}];

View File

@@ -101,7 +101,6 @@
[self addSubview:self.nobleEntranceView];
[self addSubview:self.nobleImageView];
[self.nameStackView addArrangedSubview:self.nobleImageView];
[self.nameStackView addArrangedSubview:self.nameLabel];
[self.nameStackView addArrangedSubview:self.editButton];
[self.idStackView addArrangedSubview:self.idLabel];

View File

@@ -79,11 +79,6 @@
make.right.mas_equalTo(self.avatarImageView).mas_offset(-(120 / 4) +11);
make.width.height.mas_equalTo(22);
}];
[self.nickLabel mas_updateConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.avatarImageView.mas_bottom).mas_offset(12);
make.height.mas_equalTo(20);
make.width.mas_equalTo(self.avatarImageView);
}];
///
self.svgDisplayView.hidden = NO;
@weakify(self);
@@ -99,11 +94,6 @@
}];
} else {
self.svgDisplayView.hidden = YES;
[self.nickLabel mas_updateConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.avatarImageView.mas_bottom).mas_offset(4);
make.height.mas_equalTo(14);
}];
}
}
@@ -112,7 +102,11 @@
self.postionLabel.hidden = YES;
if (self.position == -1) {///5
self.nickLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightBold];
self.nickLabel.text = userInfo.nick;
NSString *nickStr = userInfo.nick;
if (userInfo.nick.length > 10) {
nickStr = [NSString stringWithFormat:@"%@…", [userInfo.nick substringToIndex:10]];
}
self.nickLabel.text = nickStr.length > 0 ? nickStr : @"";
}
}