消息模块-用户升级消息

This commit is contained in:
fengshuo
2022-04-20 11:32:22 +08:00
parent ad769aa28d
commit 1f85a06293
16 changed files with 371 additions and 155 deletions

View File

@@ -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];