If you want to add chat functionality in your iOS app . Then this blog can help you to do some basic chat functionality. Such as creating xmpp session , login on sever, creating room, getting list of login buddies and chatting. For full information, Visit full Blog.
http://findnerd.com/list/view/XMPP-integration-using-iOS-sdks/976