MVC used in ObjectiveC programming

I'm a bit confused about the MVC implementation used in Objective C programming. What is described as "Controller" in the Objective C tutorials and documentation, I understand simply as a view or mediator. What is right?

+2


a source to share


2 answers


A model is what stores your application data - its world model.

A view is what interacts with your user. It displays things and returns the input.



Controller handles interactions between other components. It talks about how to find its content, it reacts to changes in the view by updating the relevant parts of the model and reacts to changes in the model by telling you to update.

+7


a source


Viewing Displays Model contains data
The controller responds to user events and controls the view and model.



The controller cannot be an intermediary because the view and model do not interact with each other through it. But he controls them.

+2


a source







All Articles