Dipanjan Dutta Dipanjan Dutta - 1 year ago 89
Objective-C Question

What does the “unrecognized selector sent to instance” error mean?

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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download