I have 0 experience on chat programming but I’ll still try to answer your question.
You will need a server to manage the messaging between clients.
Then you could follow two routes:
- Having the client fetch the server for new messages every X seconds (the easiest option if you ask me)
- Having a socket connection between client and server and have the client listen on that socket for incoming messages forwarded by the server (the best option if you ask me)
Developing the first option is not hard at all but the second one will require quite a little bit of studying effort especially if you are new to networking and stuff like that.
Edit: To develop the first option you could use a library AFNetworking
to send an http request to the server and have the server return the incoming messages maybe in the form of JSON or XML data.
Take a look at this for a very good get-started tutorial. http://www.ibm.com/developerworks/library/x-ioschat/
solved How to make an inApp “Chat” [closed]