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/81d57219cdb195a0ffded506http://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接收(离线添加好友邀请的接收问题)
http://baisong.bokee.com/5816592.html
XMPPFrameWork之bind Rsource(多点登陆)
http://blog.csdn.net/tjsjping/article/details/6836119
XMPP-选择合适的时机注册Presence处理函数
http://guangboo.org/2013/05/15/xmpp-presence-register-handler