优化项目
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
[self.stackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self.avatarImageView.mas_right).offset((10));
|
||||
make.right.mas_lessThanOrEqualTo(self.attentionButton.mas_left).mas_offset(-(10));
|
||||
make.right.mas_lessThanOrEqualTo(self.attentionButton.mas_left).mas_offset(-0);
|
||||
make.height.mas_equalTo(20);
|
||||
make.top.equalTo(self.avatarImageView.mas_top).mas_offset((3));
|
||||
}];
|
||||
@@ -112,7 +112,9 @@
|
||||
_fansInfo = fansInfo;
|
||||
if (_fansInfo) {
|
||||
self.avatarImageView.imageUrl = _fansInfo.avatar;
|
||||
|
||||
if(_fansInfo.nick.length > 5){
|
||||
_fansInfo.nick = [NSString stringWithFormat:@"%@...",[_fansInfo.nick substringToIndex:5]];
|
||||
}
|
||||
self.nickLabel.text = _fansInfo.nick;
|
||||
self.signLabel.text = _fansInfo.userDesc && _fansInfo.userDesc.length > 0? _fansInfo.userDesc : YMLocalizedString(@"XPMineFansTableViewCell0");
|
||||
if (_fansInfo.useingType != ContactUseingType_In_Room && _fansInfo.useingType != ContactUseingType_Share) {
|
||||
|
Reference in New Issue
Block a user