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 = @"";
  2. NSURL *url = [NSURL URLWithString:path];
  3. NSData *data = [NSData dataWithContentsOfURL:url];
  4. UIImage *img = [[UIImage alloc] initWithData:data cache:NO]

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.