Understanding MVC pattern used in iOS apps

后端 未结 5 1145
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 11:41

I have read Apple\'s MVC article and am confused about various things. Firstly Apple uses a combination of the View and the Controller in almost all its sample applications whi

5条回答
  •  [愿得一人]
    2021-01-30 12:04

    This is by far the best, yet simple explanation I've come across(taken from RayWenderlich)

    "The idea behind MVC is that
    - VIEWS should only care about how they are presented HOW THEY ARE PRESENTED,
    - MODELS should only care about their DATA,
    - and CONTROLLERS should work to MARRY the two WITHOUT necessarily knowing too much about their internal structure."

提交回复
热议问题