I'd definitely help you in adding the friend to your roster, I'd like to give you clue so that it will be easy for you to implement other things that you will come across while developing your application.
Go on the
xmpp.org website and in that click on extensions you will find list of extensions which performs peculiar functions. In that you will find how to add a friend in your roster.
It is like passing an xml to your openfire server, you don't need to do anything just pass the xml you will get the response in didreceiveiq method in AppDelegate and from that you can perform the function you want to perform.
Example.
You need to pass the subscribe request to send request to your friend.
<presence to='jul...@example.com' type='subscribe'/>
If you are still confused how to do that, don't worry just call the xmpproster method in this way.
In your .h file declare
#import "XMPPRoster.h"
and use this in XMPPRosterDelegate in
UIViewController<XMPPRosterDelegate>{
XMPPRoster *xmppRoster;
}
@property (nonatomic, strong, readonly) XMPPRoster *xmppRoster;
In your .m file declare this method
@synthesize xmppRoster;
Now if you have any action method in that method declare in this way
[self.xmpproster
adduser:fri...@gmail.com withnickname:anyname];
Hope this helps.