问题描述
NSDictionary *ss = [ [NSUserDefaults standardUserDefaults] objectForKey: @"login"]; NSLog(@"个人信息是%@",ss); NSDictionary *result = [ss objectForKey:@"result"]; NSLog(@"群组是%@",result); NSNumber *grpID = [result objectForKey:@"pro_groupId"]; NSString *groupId = [NSString stringWithFormat:@"%@",grpID]; NSLog(@"省群ID是%@",groupId); ChatViewController *chatController = [[ChatViewController alloc] initWithChatter:groupId isGroup:YES]; [self.navigationController pushViewController:chatController animated:YES]; 我的思路是先获取登录用户的群组IP,即groupId,然后调用创建官方的 chatviewcontroller,但不知道为什么会出错
解决方案
报错就是群组不存在,请贴出详细的报错信息。
解决方案二:
2015-10-27 16:59:51:980 ChengDuInstituteOfTechnology[2724:607] begin insert message to chatter::214, messageId::150a886672c2015-10-27 16:59:52:002 ChengDuInstituteOfTechnology[2724:607] end insert message with account::northdoo, to chatter::214, messageId::150a886672c, result::YES2015-10-27 16:59:52:004 ChengDuInstituteOfTechnology[2724:5707] SEND: <message type="groupchat" to="easemob-demo#chatdemoui_214@conference.easemob.com" id="150a886672c"><body>{"to":"214","from":"northdoo","bodies":[{"msg":"大","type":"txt"}]}</body></message>2015-10-27 16:59:52:033 ChengDuInstituteOfTechnology[2724:5707] RECV: <message from='easemob.com' to='easemob-demo#chatdemoui_northdoo@easemob.com/mobile'><body>150a886672c</body><received xmlns='urn:xmpp:receipts' mid='121855060048085448'>150a886672c</received></message>2015-10-27 16:59:52:037 ChengDuInstituteOfTechnology[2724:9703] RECV: <message from='easemob-demo#chatdemoui_214@conference.easemob.com' to='easemob-demo#chatdemoui_northdoo@easemob.com/mobile' type='error' id='121855060048085448'><body>{"to":"214","from":"northdoo","bodies":[{"msg":"大","type":"txt"}]}</body><error code='404' type='cancel'><item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Conference room does not exist</text></error></message>
解决方案三:
这个错误就是不存在啊