新人,求解关于view 与 view controller 的问题
objectivec吧
全部回复
仅看楼主
level 2
子亥555 楼主
我创建了一个UIView的子类, 有一个view controller.
用storyboard 建了一个view,然后和那个UIView子类, 绑在了一起。
在view controller 里面有 建了UIView 子类的实例,但是当我在view controller 里面
set UIView 子类的property的值得时候,却不成功。根本赋不上去...是本来就不能这么
写吗?我所有的property 都不是readonly 的。
跪求解!!!
谢谢!!
2015年11月10日 23点11分 1
level 3
不知所云。。。
2015年11月16日 15点11分 2
level 4
 - (void)awakeFromNib
{
[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil];
[self addSubview:self.contentView];
}
2015年11月26日 03点11分 3
1