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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-02-2008, 07:48 AM   #14 (permalink)
chuckbrandt
New Member
 
Join Date: Nov 2008
Posts: 2
Default I get unrecognized selector when I try to use this code.

Quote:
Originally Posted by PhoneyDeveloper View Post
Code:
//	

UIImage* resizedImage(UIImage *inImage, CGRect thumbRect)
{
...
}
I get the following uncaught exception when I call this code:
2008-11-02 06:35:15.265 GiftFinder[3208:20b] *** -[NSCFData CGImage]: unrecognized selector sent to instance 0x45d4000
2008-11-02 06:35:15.267 GiftFinder[3208:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFData CGImage]: unrecognized selector sent to instance 0x45d4000'

Is there a framework I need to add or something?

I am very new to iPhone development and Objective-C so it seems more likely I've done something wrong. Please advise

in .h file:

UIImage* resizedImage(UIImage *inImage, CGRect thumbRect);

in .m file:

UIImage* resizedImage(UIImage *inImage, CGRect thumbRect)
{
... Exactly as above
}

UIImage *image = (UIImage *)ABPersonCopyImageData(person);
CGRect sz = CGRectMake(0.0f, 0.0f, 69.0f, 69.0f);
UIImage *smallImage = resizedImage(image, sz);


Thanks, Chuck Brandt
chuckbrandt is offline   Reply With Quote
 

» Advertisements
» Online Users: 357
20 members and 337 guests
ADY, apatsufas, chemistry, Duncan C, Fit4him, fkmtc, headkaze, HemiMG, MarkC, marto1914, Meoz, padsoftware, Promo Dispenser, Raffaello, sojourner, syver, tathaastu, tgjorgoski, Thrillhouse1919, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,221
Posts: 380,717
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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