消息模块-用户升级消息
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
#define MESSAGE_PADDING 10
|
||||
|
||||
@interface MessageContentOpenLiveView ()
|
||||
///背景
|
||||
@property (nonatomic,strong) UIView * backView;
|
||||
///头像
|
||||
@property (nonatomic,strong) NetImageView *avatarImageView;
|
||||
///显示标题
|
||||
@@ -47,6 +45,7 @@
|
||||
self.avatarImageView.imageUrl = info.userVo.avatar;
|
||||
self.idLabel.text = [NSString stringWithFormat:@"%@ 上线了", info.userVo.nick];
|
||||
} else {
|
||||
|
||||
NSArray *uids = @[info.uid];
|
||||
[[NIMSDK sharedSDK].userManager fetchUserInfos:uids completion:^(NSArray<NIMUser *> * _Nullable users, NSError * _Nullable error) {
|
||||
if (error == nil) {
|
||||
@@ -65,6 +64,8 @@
|
||||
[self.backView addSubview:self.avatarImageView];
|
||||
[self.backView addSubview:self.titleLabel];
|
||||
[self.backView addSubview:self.idLabel];
|
||||
UITapGestureRecognizer * tap= [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backViewTapRecognozer)];
|
||||
[self.backView addGestureRecognizer:tap];
|
||||
}
|
||||
|
||||
|
||||
@@ -111,16 +112,6 @@
|
||||
}
|
||||
|
||||
#pragma mark - Getters And Setters
|
||||
- (UIView *)backView {
|
||||
if (!_backView) {
|
||||
_backView = [[UIView alloc] init];
|
||||
_backView.backgroundColor = [UIColor clearColor];
|
||||
UITapGestureRecognizer * tap= [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(backViewTapRecognozer)];
|
||||
[_backView addGestureRecognizer:tap];
|
||||
}
|
||||
return _backView;
|
||||
}
|
||||
|
||||
- (NetImageView *)avatarImageView {
|
||||
if (!_avatarImageView) {
|
||||
NetImageConfig * config = [[NetImageConfig alloc]init];
|
||||
|
Reference in New Issue
Block a user