Create a UIImage from url


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.