摘要: 四:自动连接从当前代码来看,如果有意外的断开,我们将无法获取信息。所以要添加XMPPReconnect xmppReconnect = [[XMPPReconnectalloc]init]; [xmppReconnectactivate:self.xmppStream];五:发送和接收消息 XEP-0136布置好自己的聊天页面,包括用来展示聊天记录的UITableView,和发送消息的按钮。发送消息代码如下:接收消息:当有消息进来后,调用- (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)mess.. 阅读全文
posted @ 2013-08-23 13:33 dawn_wdf 阅读(4176) 评论(10) 推荐(3) 编辑