Conversation Between Users – Controller Definition
摘要
In the Model-View-Controller (MVC) architectural pattern, the Controller is the intermediary between the Model and the View. In our chat application, when the user opens the application for the first time, it will navigate the user to create a profile view controller. For all other cases, it will show the ContactViewController for either adding contact or initiating a chat with an existing contact. Please find below the code breakdown: