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, 09:19 AM   #15 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

On this line:

Code:
UIImage *image = (UIImage *)ABPersonCopyImageData(person);
You're typecasting an NSData* to a UIImage* and they're not the same.

Try this:

Code:
NSData* imageData = (NSData*)ABPersonCopyImageData(person);
UIImage* image = [UIImage imageWithData: imageData];
[imageData release];
CGRect sz = CGRectMake(0.0f, 0.0f, 69.0f, 69.0f); 
UIImage *smallImage = resizedImage(image, sz);
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Online Users: 291
19 members and 272 guests
ADY, apatsufas, chemistry, Fit4him, headkaze, ilmman, iosdevjtp, MarkC, marto1914, Meoz, PsychoChris, sly24, sneaky, Sunny46, tgjorgoski, thh022, Thrillhouse1919, timle8n1, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,718
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 10:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.