Skip to content

There are two subclasses of UIImageView and UIImage as BCImageView and BCImage. You can use these classes in your project. This will take care of caching the images downloaded from URLs. So in simple words , these classes will not download the same image URL again. It will cache the images according to the image URLs.

BharatJagtap/BCImageView-and-BCImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

There are two classes BCImageView and BCImage. These classes will help you in downloading and caching the images from urls,
asynchronouysly. 

BCImageView
Its a simple subclass of UIImageView. Instead of UIImageView, you should use this class to create image views in the Project.

BCImageView * imageView = [BCImageView imageViewWithURL:@"<image-url>" placeHolderImage:@"<place_holer_image_name>"];

Above line downlods the image at the specified url , stores it in Cache Directory. You can also pass a placeholder image name.
By the time the actually image gets dwonloaded , the placeholder image would be displayed . The placeholder image should be available
in the Application bundle. 

Now next time you hit the same url to create the image view then it load the image that has been cached already. 

If you at all want to flush out all the images that have been cached use below line.


BOOL success  = [BCImage flushCacheDirectory];

About

There are two subclasses of UIImageView and UIImage as BCImageView and BCImage. You can use these classes in your project. This will take care of caching the images downloaded from URLs. So in simple words , these classes will not download the same image URL again. It will cache the images according to the image URLs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published