Old-iOS-chatroom is a project mainly written in ..., it's free.
Route 50 for iOS - Starting with a Basic Chatroom