问题描述
写在ViewDidLoad里面走它,可是听语音时无法显示图片,求解
解决方案
图片文件都导入了吗?
解决方案二:
导入了
解决方案三:
NSArray *array = [[NSArray alloc]initWithObjects:[UIImage imageNamed:@"chat_sender_audio_playing_full"], [UIImage imageNamed:@"chat_sender_audio_playing_000"], [UIImage imageNamed:@"chat_sender_audio_playing_001"], [UIImage imageNamed:@"chat_sender_audio_playing_002"], [UIImage imageNamed:@"chat_sender_audio_playing_003"], nil]; [[EaseBaseMessageCell appearance] setSendMessageVoiceAnimationImages:array]; NSArray * array1 = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"chat_receiver_audio_playing_full"],[UIImage imageNamed:@"chat_receiver_audio_playing000"], [UIImage imageNamed:@"chat_receiver_audio_playing001"], [UIImage imageNamed:@"chat_receiver_audio_playing002"], [UIImage imageNamed:@"chat_receiver_audio_playing003"],nil]; [[EaseBaseMessageCell appearance] setRecvMessageVoiceAnimationImages:array1];这样设置
解决方案四:
可以说明白区别吗?比较了一下就是NSAraay的对象不一样。2、我成功登陆服务器了,为什么我在聊天页面发的东西,退出页面数据没被保存,聊天内容没了,求解
解决方案五:
在登录的block和自动登录的回调中加上该方法://获取数据库中数据 [[EaseMob sharedInstance].chatManager loadDataFromDatabase];在EaseMessageViewController.m的viewdidload中加上该方法:self.showRefreshHeader = YES;//通过会话管理者获取已收发消息 [self tableViewDidTriggerHeaderRefresh];
解决方案六:
1、我设置self.showRefreshHeader = YES;,系统会报错2、发语音的图片还是无法显示