Posted By

gerhardsletten on 09/26/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mracoker
avanadra


Create a UIImage from url


 / Published in: Objective C
 

  1. id path = @"http://merrimusings.mu.nu/archives/images/groundhog2.jpg";
  2. NSURL *url = [NSURL URLWithString:path];
  3. NSData *data = [NSData dataWithContentsOfURL:url];
  4. UIImage *img = [[UIImage alloc] initWithData:data cache:NO]

Report this snippet  

You need to login to post a comment.