【发布时间】:2013-07-09 19:41:43
【问题描述】:
在我的实现模型中,我需要一些不同的文件,以及一些类似的方法。另外,我在NSMutableArray 中收集了不同类型的对象,并尝试像这样调用我的类似方法:
[[ArrayOfViews objectAtIndex:i] myMethodWithInt:'number' andExample:'char'];
但它给了我一个警告:
Instance method '...' not found (return type defaults to 'id')
我的代码有效,但我应该修复这个警告吗?
【问题讨论】:
-
您应该始终尝试修复 C 和 Objective-C 代码库中的警告;它们通常表明存在严重(通常是致命的)问题。
-
这就是我努力检测并修复它们的原因 =)
标签: objective-c methods nsmutablearray warnings