开发者社区> 问答> 正文

-[__NSCFBoolean length]: unrecognized selector sent to instance 0x3b5fde98

报错代码:

NSLog(@"title:%@",((DPArticles*)[data objectAtIndex:2]).title);

[lOneView3.titleLabel setText:((DPArticles*)[data objectAtIndex:2]).title];
打印:
2014-08-25 10:50:08.801 traffic[1342:60b] title:0

2014-08-25 10:50:08.818 traffic[1342:60b] -[__NSCFBoolean length]: unrecognized selector sent to instance 0x3b5fde98

2014-08-25 10:50:08.828 traffic[1342:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean length]: unrecognized selector sent to instance 0x3b5fde98'

* First throw call stack:

(0x30aaff4b 0x3ae3f6af 0x30ab38e7 0x30ab21cb 0x30a014d8 0x313d23d9 0x313d1ea9 0x33230cf9 0xc6c0d 0xc3eb7 0xc261d 0xc1ad7 0x14301f 0x30ab3504 0x309fddfb 0x31493e9b 0x30a7b183 0x30a7a653 0x30a78e47 0x309e3c27 0x309e3a0b 0x356c2283 0x33287049 0x545b5 0x2a530)

libc++abi.dylib: terminating with uncaught exception of type NSException

展开
收起
杨冬芳 2016-06-28 15:41:46 2644 0
1 条回答
写回答
取消 提交回答
  • IT从业

    通常是不能识别正确的实例,没有看到代码无法准确的判断。 ============================ 安卓开发、ios开发、QT移动开发技术交流学习群 347131054 。 欢迎有志做移动开发的同行加入!

    2019-07-17 19:48:25
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Why you should care about data layout in the file system 立即下载
Scaling Spark applications by connecting code to resource consumption 立即下载
Why you should care about data 立即下载