Quote:
Originally Posted by PhoneyDeveloper
Hi Rick,
I agree that
and I believe that this is because
UIButtonContent is an undocumented class. The OP didn't create one and then treat it as an NSArray. He created something else, presumably an NSArray, and failed to retain it. Then after it was released a UIButtonContent was created by the framework in the same block of memory and he messaged it.
There are other possible reasons to get the 'unrecognized selector' runtime error, like a bad type cast or even ignoring warnings but failing to retain an object is a very common cause of this error. Maybe the OP can tell us what fixed his bug.
|
umm yea you were right, I was calling in my app delegate to return an array, then I wanted to use that array. but in my app delegate I didnt return an allocated array, so that was the problem.