during its initialization is never read
来源:互联网 发布:hbase查找数据过程 编辑:程序博客网 时间:2024/06/01 07:44
在编写OC代码的时候大家可能会出现这样的问题,那就是提示这个警告,我是在使用xcode 的 analyzer的时候出现的
NSMutableArray *muarrVideoAddress = [[NSMutableArray alloc] init];muarrVideoAddress = [dicAll objectForKey:@"link"];
这是因为在一开始的时候给他定义了一个内存空间,可是在下面的时候直接给他赋值,并没有使用一开始使用的那个堆内存中的对象,所以智能的Xcode编译器识别了出来。修改办法:
NSMutableArray *muarrVideoAddress = nil;
这样就可以了,
0 0
- during its initialization is never read
- stored to '*' during its initialization is never read
- stored to '*' during its initialization is never read
- Value stored to 'myKeyArray' during its initialization is never read
- "Value stored to '***' during its initialization is never read"
- Value stored to 'recordView' during its initialization is never read
- stored to (datesArray and programsDict) during its initialization is never read
- 静态检测内存泄露Analyze--Value stored to 'dataArr' during its initialization is never read
- Value stored to '*' during its initaliztion is never read
- Value stored '**' is never read
- The local variable XXXX is never read
- 【This field BeanName.xxx is never read locally】
- Analyze提示:Value stored to "xxx"is never read
- Analyze提示:Value stored to "***"is never read
- Exception encountered during context initialization
- Exception encountered during context initialization
- ApplicationContext is never closed
- Error occurred during initialization of VM
- 日期结构体
- MacBook Pro OS X Mavericks chrome 33 google 帐户同步 无限次漰溃 解决方案
- Unable to establish route
- 第十四周 呜呜呜
- ajax实现表单用户名校验
- during its initialization is never read
- iOS学习笔记——视图上移与键盘弹回
- error:The calling thread cannot access this object because a different thread owns it解决方法
- gdb 调试
- STM32 加入调试信息来调试代码
- "latex unknown graphic extension: .eps"解决之道
- java数组与简单排序
- xbmc + kinect Day 2
- AngularJs学习笔记--directive