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.
Objective-C C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AFNetworking
LBGifImageTest.xcodeproj
LBGifImageTest
readme.md

readme.md

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.

Downloading

When downloading is finished, it shows the image just downloaded.

Finished

I used two libraries.

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.