【发布时间】:2011-01-21 08:59:11
【问题描述】:
我有一个NSMutableArray,我想在其中插入数据,问题是首先我想检查我插入数据的索引是否存在。怎么做?
我尝试了类似的方法,但没有任何效果:
if ([[eventArray objectAtIndex:j] count] == 0)
或
if (![eventArray objectAtIndex:j])
【问题讨论】:
标签: iphone objective-c cocoa-touch nsmutablearray