【发布时间】:2015-07-26 00:25:23
【问题描述】:
我尝试根据给定的here 使用以下代码在 iOS 中使用 XMPP 框架创建一个新组
NSString *nickName=[NSString stringWithFormat:@"%@.nickName@conference.server.hostname.in" ,newGroupName ];
XMPPRoomMemoryStorage * roomMemory = [[XMPPRoomMemoryStorage alloc]init];
NSString* roomID = [NSString stringWithFormat:@"%@@conference.server.hostname.in" ,newGroupName ];
XMPPJID * roomJID = [XMPPJID jidWithString:roomID];
XMPPRoom* xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomMemory jid:roomJID dispatchQueue:dispatch_get_main_queue()];
[xmppRoom activate:self.xmppStream];
[xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()];
[xmppRoom joinRoomUsingNickname:nickName history:nil password:nil];
我确实按照上面指定的thread 配置了
[xmppRoom fetchConfigurationForm];
但是方法没有响应
- (void)xmppRoomDidCreate:(XMPPRoom *)sender{
DDLogVerbose(@"%@: %@", THIS_FILE, THIS_METHOD);
}
或者甚至没有调用这个方法。 这意味着该组没有被创建,对吗?没有错误显示或日志中没有任何内容。
请告诉我我犯了什么错误,或者我是否还有其他事情要做。
提前致谢:D
【问题讨论】:
标签: ios objective-c xcode xmppframework muc