UIImageView *imgView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Logo"]];
如上代码,uiimage是m,uiimageView是View,但是model和View是不能进行通信的,需要经过Controller。
我想问的是,controller在这里做了什么?
本文探讨了UIImageView初始化过程中涉及的MVC模式。通过实例代码解释了model和View之间的间接通信原理,即如何通过Controller作为中介实现两者的交互。
UIImageView *imgView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Logo"]];

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