我的问题是我有一个复杂的结构(NSArray
s 和NSDictionaries
),当我尝试自定义表格视图单元格的外观时,我NSArray
使用上面所说的复杂结构构建了一个。首先,当它显示UITableview
(带有单元格)时没有问题,但是当我滚动(向下或向上)时,我的应用程序会出现类似这些错误:
(这是我向下滚动的时候)
[8721:40b] Terminating app due to uncaught exception 'NSRangeException', reason: -[NSMutableArray objectAtIndex:]: index 2 beyond bounds [0 .. 0]
(这是我向下滚动的时候)
[9018:40b] -[__NSCFSet objectAtIndex:]: unrecognized selector sent to instance 0x4c59750
2011-03-01 17:51:23.447 CinePlanet[9018:40b] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[__NSCFSet objectAtIndex:]: unrecognized selector sent to instance 0x4c59750
我在构建我的 时非常小心NSArray
,我不知道我是否遗漏了其他东西。