Controller可以直接访问Model和View。
Model与View不能直接进行通讯。
View通过delegate将Should、will、did各种方法委托给Controller执行。
View通过datasource从Controller获取数据,在View上显示。
View通过blind shoot将action传递给Controller,每一个View上的动作在Controller上都有一个target对应,Controller通过判断被命中的target执行操作。
Model通过Notification & KVO机制进行广播,将消息传递给感兴趣的Controller,而Controller需要建立NSNotificationCenter来接受消息。
1402

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



