Google News
logo
IOS - Interview Questions
Explain Model View Controller Architecture to develop iOS applications?
MVC is the commonly used beginner-level software architecture design pattern made with the following objects.
 
The Model contains the things that are used to handle the data of the application. The models are used to parse the request and response with the server's API. Things like persistence, model objects, parsers, managers, and networking code reside here.

The View is treated as the face of the application. The object like UILabel and UITextField are the view objects that present the data on the screen. The view doesn't contain any domain-specific logic.

The controller is used as the mediator between the Model and the view via the delegation pattern. The controller doesn't need to know the concrete view it is working for. However, the controller contains the business logic to present the data that is parsed by the model and displayed by the view objects.
Advertisement