2014年7月1日

关于error:Cannot assign to 'self' outside of a method in the init family

摘要: 有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in... 阅读全文

posted @ 2014-07-01 11:52 三十一 阅读(201) 评论(0) 推荐(0) 编辑

导航