“unrecognized selector sent to instance” error in Objective-C

It looks like you’re not memory managing the view controller properly and it is being deallocated at some point – which causes the numberButtonClicked: method to be sent to another object that is now occupying the memory that the view controller was previously occupying…

Make sure you’re properly retaining/releasing your view controller.

Leave a Comment

error code: 523