注册

UI3.0集成崩溃

集成UI3.0时其他都好用,但是
[[EaseBaseMessageCell appearance] setSendMessageVoiceAnimationImages:@[[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"]]];
这一句崩溃,注掉就好了,但是在语音时就没有动态效果,加上这一句就崩掉了。为什么?加入全局断点后断这一句,进入chatViewController的时候就蹦了
已邀请:
你好,更改数组的创建方式,不要使用这种简易方式创建了。
  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];
 
这样写,试一下

要回复问题请先登录注册