Jignesh B Jignesh B - 4 months ago 52
iOS Question

how to load url image in image view in iphone

- (void)viewDidLoad
[super viewDidLoad];
NSURL *url = [NSURL URLWithString:@"http://www.scri8e.com/effects/FL0WERZ/PNG/ir09.png"];
data = [[NSData alloc]initWithContentsOfURL:url ];
UIImage *img = [[UIImage alloc]initWithData:data ];

above is my code but it does not load the image in image view


Try this library to https://github.com/nicklockwood/AsyncImageView.This will help you download images and display in the imageview.