The XMPPFramework is just that, a framework. You must construct a full UI and all the other logic necessary to create a chat application.
To send a chat message to another user, you would use code similar to this:
NSXMLElement *body = [NSXMLElement elementWithName:@"body"];
[body setStringValue:@"Message text here"];
NSXMLElement *message = [NSXMLElement elementWithName:@"message"];
[message addAttributeWithName:@"type" stringValue:@"chat"];
[message addAttributeWithName:@"to" stringValue:@"recipient.jid.com"];
[message addChild:body];
[xmppStream sendElement:message];
You would need to create the UI using a UITextField to enter the message text for instance. XMPPFramework is the low-level code to send and receive XMPP stanzas. You would also need to add code to where XMPP Messages are received, probably use the isChatMessage
method and then notify the recipient that they've received a message, display it to them and allow them to reply.