Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-20-2008, 08:12 PM   #11 (permalink)
ipodtouchmaster05
Registered Member
 
Join Date: Sep 2008
Posts: 180
ipodtouchmaster05 is on a distinguished road
Default

Quote:
Originally Posted by PhoneyDeveloper View Post
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.
ipodtouchmaster05 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,605
Threads: 94,084
Posts: 402,783
Top Poster: BrianSlick (7,990)
Welcome to our newest member, champa812
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.