Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.18 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.18 KB

FLAnimatedImage_AFNetworking

Extension of FLAnimatedImageView (https://github.com/Flipboard/FLAnimatedImage) to support async download and caching using AFNetworking (https://github.com/AFNetworking/AFNetworking)

You need those libraries in your project.

If you use a FLAnimatedImageView then just do this:

[animatedImageView setAnimatedImageWithURLRequest:request 
                placeholderImage:placeHolderImage 
                success:^(NSURLRequest *request, NSHTTPURLResponse *response, FLAnimatedImage *animatedImage){
                    animatedImageView.animatedImage = animatedImage;
					//do more things
                } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error){
                    //handle failure
                }];

or

[animatedImageView setAnimatedImageWithURLRequest:request 
            placeholderImage:placeHolderImage 
            success:nil
            failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error){
                //handle failure
            }];

Feel free to reach me @jagbolanos