Please give me some popular science about Swift's MVC design pattern.
阿神
阿神 2017-05-16 17:06:04
0
1
917

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

阿神
阿神

闭关修行中......

reply all(1)
左手右手慢动作

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template