Skip to content

fuacici/JOImageLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JOImageLoader

UIImage Additions (With cache and request management included) ###Features:

  • Load image from Internet with NSURLConnection.
  • Cache image locally into disk, BUT NO Cache policy support so far,(No expiration mechanism, once cached never refreshed).
  • Efficient image decoding based on extra gcd queue to predecode.

###Usage:

first, set a loader for all UIImageView

_imageLoader = [[JOImageLoader alloc] init];
[UIImageView setImageLoader: _imageLoader];

then:

UIImageView * v = nil;
[v setImageWithUrlString: @"http://www.test.com/test.jpg"];

or,

[v setImageWithUrlString: urlstring placeHolder:nil animate:NO indicator:NO]

###Todo:

  • Add support for cache control.(etag, Expires, if-not-modified,etc)

###Notes for me:

  • only save origin image into disk even if called with downscalation.

About

With cache and request management included

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors