答案 0 :(得分:1)
如果你只是按照这种方式,你可以建立XMPP聊天室。你必须配置一些关于房间的设置。
这个委托方法将被调用〜你可以通过XMPP设置你想要的东西 - 045文件
XMPPRoomMemoryStorage *roomMemory = [[XMPPRoomMemoryStorage alloc]init];
roomID = [NSString stringWithFormat:@"%@@%@",_subjectOfRoom.text,szRoomName];
XMPPJID *roomJID = [XMPPJID jidWithString:roomID];
XMPPRoom *xmppRoom = [[XMPPRoom alloc]initWithRoomStorage:nil
jid:roomJID
dispatchQueue:dispatch_get_main_queue()];
[xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()];
[xmppRoom activate:[[JSXMPP_Singletone sharedInstanc]xmppStream]];
[xmppRoom joinRoomUsingNickname:@"KIM"
history:nil
password:nil];
[xmppRoom configureRoomUsingOptions:nil];