原文地址:http://blog.csdn.net/chengyakun11/article/details/19235769
XMPPRoster *xmppRoster;//用戶對象
subscribe 訂閱
獲取好友列表
- (void)queryRoster { NSXMLElement *query = [NSXMLElement elementWithName:@"query" xmlns:@"jabber:iq:roster"]; NSXMLElement *iq = [NSXMLElement elementWithName:@"iq"]; XMPPJID *myJID = self.xmppStream.myJID; [iq addAttributeWithName:@"from" stringValue:myJID.description]; [iq addAttributeWithName:@"to" stringValue:myJID.domain]; [iq addAttributeWithName:@"id" stringValue:[self generateID]]; [iq addAttributeWithName:@"type" stringValue:@"get"]; [iq addChild:query]; [self.xmppStream sendElement:iq]; }
相關博客:
IOS XMPPFRAMEWORK IntroToFramework
http://hi.baidu.com/justtmiss/item/81d57219cdb195a0ffded506
http://blog.csdn.net/imyfriend/article/details/8584360
[iPhone高級]
基於XMPP的IOS聊天客戶端程序(XMPP服務器架構)
[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端一)
[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端二)
[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端三)
http://blog.csdn.net/kangx6?viewmode=contents
XMPPFrameWork IOS 開發(二)- xcode配置
XMPPFrameWork IOS 開發(四)消息和好友上下線
XMPPFrameWork IOS 開發(五)獲取好友信息和添加刪除好友
http://blog.csdn.net/acorld?viewmode=contents
【iOS XMPP】使用XMPPFramewok(五):好友列表
【iOS
XMPP】使用XMPPFramewok(四):收發消息
http://www.cnblogs.com/dyingbleed/category/467219.html
XMPPFramework 翻譯與學習筆記
http://lejia.li/post/2012-07-05/40030556375
Jabber/XMPP中文翻譯計劃
http://wiki.jabbercn.org/首頁
ios,xmpp 添加好友與好友請求處理
http://blog.csdn.net/ihefe/article/details/8230414
xmppframework for iOS client(五) 添加AutoPing
http://www.cnblogs.com/zhidao-chen/archive/2013/04/23/3037158.html
xmpp中的offline
subscribe presence接收(離線添加好友邀請的接收問題)