Asynchronous Freeloader: Multithreaded Asynchronous Image Downloader for iOS

1 min read Original article ↗

Artur Sabintsev:

There are many iOS apps that require tons of images to be simultaneously downloaded, stored, and presented to the end-user without negatively impacting a user’s experience. Shelby.tv is one of these apps.

A couple months ago I put together a solution to this problem in the form of an asynchronous image downloader, with optional cache-storage, that also utilizes Apple’s Grand Central Dispatch technology to swiftly obtain, store, and present these images to the end user. I call it Asynchronous Freeloader.

My implementation is/does the following:

  • iOS 5+ Compatible
  • ARC Compliant
  • Image Scaling
  • Disk Caching with Garbage Collection
  • Support for Custom and Generic Placeholders
  • Multithreaded Image Downloading and Processing (via Grand Central Dispatch)

The best part, all of this functionality is yours with one line of code:

+ (void)loadImageFromLink:(NSString *)webLinkToImage 
  forImageView:(UIImageView *)imageView
  withPlaceholderView:(UIView*)placeholderView;

The code and README can be found on the project’s Github page.

Enjoy!

Great tool, Arthur! Thanks for sharing!

(via artsabintsev-deactivated2014031)

 Text