Created
December 10, 2012 00:33
-
-
Save mteece/4247675 to your computer and use it in GitHub Desktop.
UIImage from image URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // UIImage from image URL. | |
| NSURL *url = [NSURL URLWithString:@"http://example.com/image.jpg"]; | |
| NSData *data = [NSData dataWithContentsOfURL:url]; | |
| UIImage *img = [[UIImage alloc] initWithData:data]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment