MVC框架,M即是Model ,V即是View ,C则是Controller
View 和 Model 不能直接访问Controller,也不能互相访问
只能通过特殊的方法来发送响应,例如View只能通过action,delegate,data source 等方法
Model通过Notification和KVO来通知Controller
Controller能控制View和Model
本文介绍了MVC框架的基本概念,解释了Model、View和Controller之间的交互方式,并阐述了它们如何通过特定的方法进行通信。
MVC框架,M即是Model ,V即是View ,C则是Controller
View 和 Model 不能直接访问Controller,也不能互相访问
只能通过特殊的方法来发送响应,例如View只能通过action,delegate,data source 等方法
Model通过Notification和KVO来通知Controller
Controller能控制View和Model

被折叠的 条评论
为什么被折叠?