UIImage from URL


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

Load data from url and send it to an UIImage


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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.