码迷,mamicode.com
首页 > 其他好文 > 详细

-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0 2014-09-24 14:47:39.170 St

时间:2014-09-24 17:41:27      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:-__nscfnumber length   terminating app due   reason -__nscfnumber   

-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0
2014-09-24 14:47:39.170 StarShow[1948:60b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException‘, reason: ‘-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0‘
*** First throw call stack:

错误原因:服务器那边传过来的是int类型的,我这边定义的对象的作品这个属性是string类型的。

 hot.showWorks = [NSString stringWithFormat:
                                     
@"%@",[dictionary objectForKey:@"worknum"]];//Int作品数

-[__NSCFNumber length]: unrecognized selector sent to instance 0x1657c5c0 2014-09-24 14:47:39.170 St

标签:-__nscfnumber length   terminating app due   reason -__nscfnumber   

原文地址:http://blog.csdn.net/u010241322/article/details/39523151

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!