Please share some knowledge:
What is usually put in a model?
Does View refer to the things drawn on the Storyboard and the UIView you add using the code addSubview?
Controller is responsible for explaining the model to View. What is usually put in it?
It would be best if you could give me a simple MVC example, I would be grateful
ringa_lee2017-05-16 17:08:04
Business logic is placed in the Model
View refers to the view, everything displayed to the user
Controller is responsible for controlling the update of the view and is the bridge to communicate with the Model
It is recommended to take a look at the first calculator example of Stanford CS193P. I have an understanding of MVC