“无法识别的选择器发送到实例"错误是什么意思? [英] What does the “unrecognized selector sent to instance” error mean?

查看:68
本文介绍了“无法识别的选择器发送到实例"错误是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于以下错误,我的应用崩溃了:

-[NSCFString count]: unrecognized selector sent to instance 0x612b060

有人可以告诉我这是什么意思,如何在我的代码中找到引用为0x612b060的行

解决方案

您正在调用已释放或尚未初始化的对象(可能是数组,字典或集合的集合)上的count方法. /p>

I am getting a crash in my app due to the following error:

-[NSCFString count]: unrecognized selector sent to instance 0x612b060

Can anybody tell me what does it mean and how can i find the line in my code with reference 0x612b060

解决方案

You are calling count method on an object (probably a collection e.g array, dictionary, or set) which is released or has not been initialized yet.

这篇关于“无法识别的选择器发送到实例"错误是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆