Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Library Providing Easy Image Downloading And Caching With A Priority Queue

  •  
  •  
  •  
  •  
  •  

Earlier this year I mentioned an interesting image caching library called Haneke.

Here’s another interesting open source image caching library with a nice and simple syntax, and queue management called SGImageCache from SeatGeek.

The queuing feature of SGImage allows you to prioritize your image fetching (with a slow and a fast queue for images) so you can pre-fetch images if desired without affecting the main thread. You can also cancel image fetching if desired.

Here’s an example from the readme showing the syntax for fetching an image with the fast queue:

// Objective-C
[SGImageCache getImageForURL:url thenDo:^(UIImage *image) {
    if (image) {
        self.imageView.image = image;
    }
}];

You can find SGImageCache on Github here.

A nice library for easy image downloading and caching.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments