overview-of-architectural-design-patterns Flashcards

1
Q

Define model as it relates to the Model-view-controller pattern

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define View as it relates to the Model-View-Controller pattern for iOS Development

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Controller as it relates to the Model-View-Controller pattern for iOS Development

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly