个播房坑位的约束调整
This commit is contained in:
@@ -205,4 +205,4 @@ SPEC CHECKSUMS:
|
||||
|
||||
PODFILE CHECKSUM: 8120dbc8eb506e124ccb97e8ce2ecf2420ac8b5f
|
||||
|
||||
COCOAPODS: 1.11.0
|
||||
COCOAPODS: 1.11.2
|
||||
|
@@ -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);
|
||||
}];
|
||||
|
||||
|
@@ -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];
|
||||
|
@@ -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 : @"";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user