Understanding MVC pattern used in iOS apps

后端 未结 5 1151
隐瞒了意图╮
隐瞒了意图╮ 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:15

    Here’s how the Model-View-Controller (also known as MVC) pattern maps to the main parts of your App:

    Model → Data

    View → User Interface

    Controller → Core Logic

    this explain fully with sample code

    http://www.hollance.com/2011/04/making-your-classes-talk-to-each-other-part-1/

    enter image description here

提交回复
热议问题