NSString* year = [self.years objectAtIndex:[indexPath section]];
//get algorithms for that year
NSArray* algorithmSection = [self.algorithmNames objectForKey:year];
NSLog(@"%@", indexPath);
//get specific algorithm based on that row
cell.textLabel.text = [algorithmSection objectAtIndex:indexPath.row];
return cell;
无论出于何种原因,当我编译它时,我得到一个 SIGABRT 错误。它发生在
cell.textLabel.text
线。错误:
2011-08-29 19:26:21.273 xxxxxxxxxxx[1431:b303] 2 个索引 [0, 0]
2011-08-29 19:26:21.274 xxxxxxxxxxxxx[1431:b303]-[__NSCFDictionary objectAtIndex:]:无法识别的选择器发送到实例 0x4ba2370
2011-08-29 19:26:21.277 xxxxxxxxx[1431:b303] *由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFDictionary objectAtIndex:]:无法识别的选择器发送到实例 0x4ba2370”终止称为抛出异常