我在 ios 中使用 XMPP 框架。如何邀请其他用户加入群聊?
[xmppRoom1 inviteUser:[XMPPJID jidWithString:@"abc@domain.com"] withMessage:@"Come Join me"];
最佳答案
您可以在MUC中一一邀请多个用户:
for (int contactIndex = 0; contactIndex <contactsToInviteArray.count; contactIndex++)
{
NSString * inviteUserJID = [NSString stringWithFormat:@"%@@%@",[contactsToInviteArray enter code hereobjectAtIndex:contactIndex], SERVER_NAME];
[xmppRoom1 inviteUser:[XMPPJID jidWithString:inviteUserJID] withMessage:@"Come Join me"];
}
关于ios - XMPP 房间邀请好友 IOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20138562/