注册

ios.环信头像问题

ios.重新打开环信聊天页面时,一开始没有头像,等发送了一条信息后,头像才正常显示出来...求解决
已邀请:
在截图位置设置用户的头像信息试一下   EaseBaseMessageCell 这个文件里面
在chatvc重写下父类的init方法,
- (instancetype)initWithConversationChatter:(NSString *)conversationChatter conversationType:(EMConversationType)conversationType
{
if ([conversationChatter length] == 0) {
return nil;
}
self = [super initWithStyle:UITableViewStylePlain];
if (self) {
self.conversation = [[EMClient sharedClient].chatManager getConversation:conversationChatter type:conversationType createIfNotExist:YES];
self.messageCountOfPage = 10;
self.timeCellHeight = 30;
self.deleteConversationIfNull = YES;
self.scrollToBottomWhenAppear = YES;
self.messsagesSource = [NSMutableArray array];
self.delegate = self;
self.dataSource = self;
[self.conversation markAllMessagesAsRead];
}
return self;
}

要回复问题请先登录注册