修复首页bug
This commit is contained in:
@@ -127,7 +127,12 @@
|
||||
- (void)setRoomInfo:(HomePlayRoomModel *)roomInfo{
|
||||
_roomInfo = roomInfo;
|
||||
_nameView.text = _roomInfo.title;
|
||||
_bgImageView.imageUrl = _roomInfo.avatar;
|
||||
_bgImageView.image = nil;
|
||||
@kWeakify(self);
|
||||
[self.bgImageView loadImageWithUrl:_roomInfo.avatar completion:^(UIImage * _Nonnull image, NSURL * _Nonnull url) {
|
||||
@kStrongify(self);
|
||||
self.bgImageView.image = image;
|
||||
}];
|
||||
_tagBgImageView.imageUrl = _roomInfo.tagPict;
|
||||
_heatView.text = @(_roomInfo.onlineNum).stringValue;
|
||||
_rankImageView.image = nil;
|
||||
|
Reference in New Issue
Block a user