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 09-04-2008, 04:17 AM   #1 (permalink)
dim971
New Member
 
Join Date: Sep 2008
Posts: 4
dim971 is on a distinguished road
Default [TableViewCell] Image with content of url

Hi everyone,

I'd like to know how can i load an image from an url into a tableviewcell ? I tried the following code :
Code:
NSURL *url = [NSURL URLWithString:@"http://xxx.xxx.xx/xx.png"]
NSData *imageData = [NSData dataWithContentsOfURL:url];
myCell.image = [UIImage alloc] imageWithData:imageData];
the thing is when i scroll the tableview, it's getting very slow, so i think that this is not the good way to show an image from an url...? if someone can help me pleaz...

thanks
dim971 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,471
Threads: 94,038
Posts: 402,623
Top Poster: BrianSlick (7,978)
Welcome to our newest member, jimmychoow
Powered by vBadvanced CMPS v3.1.0

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