问题描述
提交之前,环信聊天报错, 那里越界了吗?? debug版本,堆栈完全看不出来。。。大神救急!!!1. libc++abi.dylib: terminate_handler unexpectedly threw an exception2._NSLayoutTreeGetBaselineOffsetForGlyphAtIndex invalid glyph index 0 我改了,设置聊天气泡图像, 这里有报警,我注掉后,还是一样crash //[[EaseBaseMessageCell appearance] setSendBubbleBackgroundImage:[[UIImage imageNamed:@"chat_sender_bg"] resizableImageWithCapInsets:UIEdgeInsetsMake(22, 20, 10, 20)]]; //[[EaseBaseMessageCell appearance] setRecvBubbleBackgroundImage:[[UIImage imageNamed:@"chat_receiver_bg"] resizableImageWithCapInsets:UIEdgeInsetsMake(22, 20, 10, 20)]];
解决方案
下全局断点,看看崩溃在哪个方法了
解决方案二:
已经解决了
时间: 2024-10-21 08:13:40