注册

getConversation返回nil


屏幕快照_2017-01-18_下午3.17_.28_.png


 
我在用EaseUI发消息的时候崩溃了,在EaseMessageViewController中添加断点后发现,即使createIfNotExist设为了YES,还是会返回nil,导致发送消息的时候崩溃了。
 
请问是什么原因?
 
找到原因了。。是我导入SDK的时候出错了。。
已邀请:
你好,我返回的时候也是nil,请问是怎么解决的??
 
/*!
 *  \~chinese
 *  获取一个会话
 *
 *  @param aConversationId  会话ID
 *  @param aType            会话类型
 *  @param aIfCreate        如果不存在是否创建
 *
 *  @result 会话对象
 *
 *  \~english
 *  Get a conversation
 *
 *  @param aConversationId  Conversation id
 *  @param aType            Conversation type
 *  @param aIfCreate        Whether create conversation if not exist
 *
 *  @result Conversation
 */
- (EMConversation *)getConversation:(NSString *)aConversationId
                               type:(EMConversationType)aType
                   createIfNotExist:(BOOL)aIfCreate;
老哥 你怎么 解决的 我遇到了一样的问题。估计是同样的错误 sdk 搞的。你怎么解决的啊

要回复问题请先登录注册