【发布时间】:2013-09-30 18:39:17
【问题描述】:
这是导致上述警告的代码:
NSMutableArray *tbValueArray = [NSArray arrayWithObjects:oServices1.text,
oServices2.text,oServices3.text,oServices4.text,oServices5.text,oServices6.text,
oServices7.text,oServices8.text,oServices9.text,oServices10.text,oServices11.text,
oServices12.text,oServices13.text,oServices14.text,oServices15.text,oServices16.text,
oServices17.text,oServices18.text,oServices19.text,oServices20.text,oServices21.text,
oServices22.text,oServices23.text,oServices24.text,nil];
如何更改它以消除警告? (我查看了 Google 和 SO 并没有发现任何适用的)。
【问题讨论】:
-
NSMutableArray *tbValueArray = [NSArray arrayWithObjects:...-- 你看到那里有冲突吗?? -
您是否在抱怨有人(不是我)因为您没有停下 10 秒钟试图真正理解错误消息而对您投了反对票??
-
是的,我阅读了该消息,但不幸的是,当时我没有任何意义......这就是我问的原因。不是每个人都像你一样聪明,所以要有同情心,好吗?
-
我曾多次花费 15-20 分钟试图破译单个编译器或运行时消息的含义——不是调试,只是试图理解消息在说什么。这个非常清晰和明确——它在其中标记了包含两种类型的行,并说您正在将一种分配给另一种并且这是不兼容的。再清楚不过了。
-
好吧,你有我 7 年的时间。但你表现得像 17 岁。
标签: objective-c nsmutablearray nsarray