Skip to content

Instantly share code, notes, and snippets.

@xfantasy
Created August 18, 2014 13:38
Show Gist options
  • Save xfantasy/71593efb90e991f00206 to your computer and use it in GitHub Desktop.
Save xfantasy/71593efb90e991f00206 to your computer and use it in GitHub Desktop.
NSURL *imageUrl = [NSURL URLWithString:couponInfo.usingUrl];
NSData *imageData = [[NSData alloc] initWithContentsOfURL:imageUrl];
_avatar.image = [UIImage imageWithData:imageData];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment