问题标签 [analyzer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
objective-c - Obj-C,消息表达式中的接收器是未初始化的值,分析器警告?
我在这条线上收到以下分析器警告...
这行代码出现在 IBAction 的中间。
我究竟做错了什么?
objective-c - 分析器问题:在第 25 行分配并存储到“oneCopy”中的对象的潜在泄漏
我已经升级了 Xcode,并收到了大量的分析器警告,如下所示:
在第 25 行分配并存储到“oneCopy”中的对象的潜在泄漏
谁能指出我正确的方向?
显示行号的屏幕截图:
objective-c - Obj-C,在未设置为“[(super or self)init ...]”的结果时返回“self”?
我收到分析器警告,因为升级...
Returning 'self' while it is not set to the result of '[(super or self) init...]'
不知道有什么问题?
objective-c - Obj-C,调用者此时不拥有的对象的引用计数减少不正确?
升级后我突然收到此警告
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
有任何想法吗 ?
objective-c - Objective-C, Comparison of unsigned expression < 0 is always false, error?
I'm getting the following warning Comparison of unsigned expression < 0 is always false
.
I'm not sure how to fix it ?
It's defined as...
objective-c - Obj-C,在线分配的对象的潜在泄漏,警告?
我已将以下变量声明为实例变量并在我的 m 文件中使用它,但是我收到了警告。
在线分配的对象的潜在泄漏...
例如,我尝试为它创建一个属性..
并合成并释放它,但我的视图在 dealloc 结束时崩溃。
我究竟做错了什么 ?
在 pickerSortingDataCurrent 上编辑相同的警告...
啊啊我有自动释放....但这并不能解决pickerSortingDataCurrent ...
编辑...
进一步编辑
objective-c - Obj-,当 'self' 未设置为 '[(super or self) init...]' 的结果时使用的实例变量
我已经问过类似的问题,但我仍然看不到问题?
警告来自上面的行Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
objective-c - Obj-C,在线分配的对象的潜在泄漏,UIBarButtonItem alloc
我遇到了分析器泄漏,但是这是我在其他地方使用的相同代码,没有问题。我知道我正在使用 alloc,因此我必须释放,但我在 dealloc 中这样做。
我究竟做错了什么 ?
头文件:
主文件:
objective-c - Obj-C,在线分配的对象的潜在泄漏... NSMutableArray alloc
我在追踪此内存泄漏错误时遇到了一些麻烦Potential leak of an object allocated on line...
我确实尝试添加一个属性/合成/释放,slicePointsIn01
但是这给了我同样的错误。
我究竟做错了什么 ?
objective-c - Obj-C,'NSRangeException',原因:'-[NSMutableArray objectAtIndex:]:索引 2 超出范围 [0 .. 1]'
前几天我发布了一个问题,但我没有包含足够的代码,而且我遇到了另一个问题。我不确定我是否应该使用[[UIApplication sharedApplication] windows]
,但自从修复以来,我被建议在前几天使数组没有正确数量的值。
有人可以建议/告诉我我哪里出错了,是否正确使用[[UIApplication sharedApplication] windows]
?
由于未捕获的异常“NSRangeException”而终止应用程序,原因:“-[NSMutableArray objectAtIndex:]: index 2 beyond bounds [0 .. 1]”
//