Skip to content

iPhonig/BHImageCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BHImageCache

Image caching library that utilizes NSURLSession and supports UIImageView as well as UIButton.

ss

Key Features

  • Refresh cache option (could be used for a user profile photo)
  • Fading in images
  • Placeholder images while an image is being downloaded (UIImageView only support for now)

Usage

  • Import UIImageView+BHImageCache for UIImageView support
  • Import UIButton+BHImageCache for UIButton support
  • Call method on UIImageView or UIButton just like you would normally call any method.
//UIImageView
[self.imageView setImageURL:@"http://www.site.com/image.png"
                    placeholder:nil
                   refreshCache:NO
                           fade:YES
                     completion:^(BOOL finished) {
}];

//UIButton
[self.button setImageURL:@"http://www.site.com/image.png"
                refreshCache:NO
                        fade:YES
                  completion:^(BOOL finished) {
                      //completion code here
                  }];

About

Image caching library that utilizes NSURLSession and supports UIImageView as well as UIButton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published