Posted By

rabc on 10/23/10


Tagged

iphone NSURL UIImage uiimageview


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

concertman


UIImage from URL


 / Published in: Objective C
 

Load data from url and send it to an UIImage

  1. NSURL* url = [NSURL URLWithString:@"http://your.image.com"];
  2. NSData* data = [[NSData alloc] initWithContentsOfURL:aURL];
  3. imageView.image = [UIImage imageWithData:data];
  4. [data release];

Report this snippet  

You need to login to post a comment.