Dipanjan Dutta Dipanjan Dutta - 8 months ago 27
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


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.