overview-of-architectural-design-patterns Flashcards
Define model as it relates to the Model-view-controller pattern
In iOs, the Model is a collection of different classes that represent the business logic (i.e. business model and data model). The model also defines the rules by which your data can be altered and manipulated.
Define View as it relates to the Model-View-Controller pattern for iOS Development
View represents user interfaces through which users interact and view the app functionalities. For example, in iOS, your view can be the UI button. The View displays data which is received from the controller as input.
Define Controller as it relates to the Model-View-Controller pattern for iOS Development
The Controller is a mediator between model and view. It is the actual manager which decides how a model should be represented in a view. In iOS, the Controller is represented by UIViewController. The main function of the controller is to get input from users via the View and process the data through the model, thereby passing back the results to the View.