日期:2014-05-16 浏览次数:20306 次
最近用JSONkit转换JSON数据,转换后做为UITableView的数据源,代码如下:
NSArray *result = [resultStr objectFromJSONString];
但调度时,只要向上拉动UITableView就会报错:
[__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x696b490
2012-06-03 21:28:03.316 FashionReport[11243:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x696b490'
*** First throw call stack:
?
?
?
NSArray *result = [[resultStr objectFromJSONString] retain];
?问题解决!