Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 985 Bytes

File metadata and controls

31 lines (18 loc) · 985 Bytes

##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.