你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
搜索问题、话题或人...
输入关键字进行搜索
搜索:
问题
精选文章
开源项目
视频教程
活动
· · ·
帮助
登录
注册
环信_iOS
iOS环信添加好友问题
IOS 添加好友时,有没有方法进行判断该好友ID是否存在于此环信中,或者有没有方法获得此环信中的所有好友列表
没有找到相关结果
已邀请:
与内容相关的链接
提交
2 个回复
[已注销]
/*!
* \~chinese
* 从服务器获取所有的好友
*
* 同步方法,会阻塞当前线程
*
* @param pError 错误信息
*
*
@Return
好友列表<NSString>
*
* \~english
* Get all the friends from the server
*
* Synchronization method will block the current thread
*
* @param pError Error
*
*
@Return
Contact list<NSString>
*/
- (NSArray *)getContactsFromServerWithError:(EMError **)pError;-------这是3.x SDK获取好友列表的方法
/*!
@Method
@brief 手动获取好友列表(异步方法)
@discussion
@param completion 获取好友列表完成后的回调
@param queue completion block 回调时的线程
*/
- (void *)asyncFetchBuddyListWithCompletion:(void (^)(NSArray *buddyList, EMError *error))completion
onQueue:(dispatch_queue_t)queue;-------这个是2.0 的SDK获取好友列表的方法
[已注销]
可以获取好友列表再去比对
要回复问题请先
登录
或
注册
发起人
星缘之火
问题状态
最新活动:
2016-03-23 19:31
浏览:
2674
关注:
3
人
2 个回复
[已注销]
* \~chinese
* 从服务器获取所有的好友
*
* 同步方法,会阻塞当前线程
*
* @param pError 错误信息
*
* @Return 好友列表<NSString>
*
* \~english
* Get all the friends from the server
*
* Synchronization method will block the current thread
*
* @param pError Error
*
* @Return Contact list<NSString>
*/
- (NSArray *)getContactsFromServerWithError:(EMError **)pError;-------这是3.x SDK获取好友列表的方法
/*!
@Method
@brief 手动获取好友列表(异步方法)
@discussion
@param completion 获取好友列表完成后的回调
@param queue completion block 回调时的线程
*/
- (void *)asyncFetchBuddyListWithCompletion:(void (^)(NSArray *buddyList, EMError *error))completion
onQueue:(dispatch_queue_t)queue;-------这个是2.0 的SDK获取好友列表的方法
[已注销]