warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'
来源:互联网 发布:分布式数据库的特点 编辑:程序博客网 时间:2024/05/20 06:25
问题
这种warning在Build的时候不用出现的,但用Xcode的静态分析工具 "Analyze",会提示:
修改如下:
原因:
在init有关的初始化方法中,必须先使用 [super init]来获取self,然后进一步使用
0 0
- warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'
- The stack 'CSTACK' is filled to 92% (368 bytes used out of 400). The warning threshold is set to 90.%
- 93 The ORACLE_SID environment variable is set to +ASM. ASMLIB is not used in the configuration. You
- Eclipse"Warning: The environment variable HOME is not set."
- self = [super init]
- self = [super init]
- self = [super init]
- self = [super init]
- self = [super init]
- self = [super init]
- GCC 4.6 warning: variable set but not used
- 关于 self = [super init];
- self = [super init]理解
- self = [super init]意义
- self==[super init]
- IOS self = [super init];
- cannot assign to 'self' outside of a method in the init family
- Cannot assign to 'self' outside of a method in the init family
- PHP extract() 函数的用法
- WisdomPluginFramework框架实际应用中的点点滴滴
- c# 获取文件路径的几种方法
- 日常脚本二——重复数据删除
- 不用'*','/','mod'进行除法运算
- warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'
- 全面理解面向对象的 JavaScript
- 文章标题
- 如何将谷歌商店里的apk下载到电脑里
- 转场动画的基本使用
- SunShine Style 问题
- 解决在非Activity中使用startActivity
- VS中设置Additional Include Directories
- Java中用文件通道(FileChannel)、BufferedInputStream/BufferedOutputStream复制文件对比