2011-03-09 72 views
1

我的問題是,我有一個複雜的結構(NSArray s和NSDictionaries),當我試圖定製我的表格視圖單元格的外觀時,我建立一個NSArray使用我說的複雜結構以上。首先,當它顯示UITableview(與單元格)時,沒有任何問題,但是當我滾動(向下或向上)時,我的應用程序會得到類似這樣的錯誤:問題與滾動tableview與定製tableviewcell

(這是當我滾動下)

[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,我不知道我是否忽略別的東西。

回答