群聊怎么实现多人@功能 ?
我现在已经通过3.3.4版本实现了单人@功能,如何能同时 多人@。 我在 聊天界面的选完人的代理方法里 使用for循环 结果 聊天发送框里 显示的是 @A(光标) B C 不是 @A @B @C ,而且效果也只是@到了A ,怎么实现 多人@
for (id obj in selectedSources) {
EaseAtTarget *target = [[EaseAtTarget alloc] init];
target.userId = obj;
target.nickname = [UserCacheManager getNickName:target.userId];
if (_selectedCallback) {
_selectedCallback(target);
}
}
for (id obj in selectedSources) {
EaseAtTarget *target = [[EaseAtTarget alloc] init];
target.userId = obj;
target.nickname = [UserCacheManager getNickName:target.userId];
if (_selectedCallback) {
_selectedCallback(target);
}
}
没有找到相关结果
已邀请:
0 个回复