##Image Async Download with Animation GIF
This sample project shows async download image from Flickr (free to change the URL). While downloading image, this app shows animation gif image like activity indicator.
While downloading image, it shows activity indicator.
When downloading is finished, it shows the image just downloaded.
I used two libraries.
-
AFNetworking
-
LBGifImage
The code downloading is below (only 4 lines ! ):
- (IBAction)download:(id)sender {
NSURL *url = [NSURL URLWithString:strURL.text];
UIImage* image = [UIImage animatedGIFNamed:@"loading3"];
[imageView setImageWithURL:url placeholderImage:image];
}
Please pay attention to put the framework ImageIO.framework
into your project.