报错cannot assign to 'self' outside of a method in the init family
来源:互联网 发布:淘宝客服删除聊天记录 编辑:程序博客网 时间:2024/06/06 02:39
报错cannot assign to 'self' outside of a method in the init family
有时候重写父类init方法时,不注意将init后面第一个字母小写,在这个方法里调用父类的初始化方法self = [super init];时会报错如下 cannot assign to 'self' outside of a method in the init family
原因:只能在init方法中给self赋值,Xcode判断是否为init方法规则:方法返回id,并且名字以inin+大写字母开头+其他 为准则。 例如:-(id)initWithXXX;
阅读全文
0 0
- 报错cannot assign to 'self' outside of a method in the init family
- cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- [IOS] 错误:Cannot assign to 'self' outside of a method in the init family
- [ios]关于error:Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to \'self\' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- 关于error:Cannot assign to 'self' outside of a method in the init family
- ntohs,htons,ntohl,htonl
- 控制台不能全部打印后台数据的简单解决办法
- 如何落地TensorFlow on Kubernetes?
- 进程间通信
- SSM报错Caused by: org.apache.ibatis.binding.BindingException: Parameter 'id' not found
- 报错cannot assign to 'self' outside of a method in the init family
- 新博客地址 http://blog.vole.com
- win 10 安装iis 提示0x80070057问题记录
- 高数 08.06 微分方程习题课 02
- 《数字技术》连载23: 第3章 逻辑设计初步 第3节 逻辑式演绎简化,基本定理
- Android 多窗口实现
- tf基础知识
- repo用法详解
- 习题7.1