Asynchronous image downloader with cache support as a UIImageView category
Go to file
Olivier Poitrey 2177028001 Update TODO 2009-09-21 03:45:10 +02:00
DMImageCache.h Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
DMImageCache.m Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
DMWebImageDownloader.h Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
DMWebImageDownloader.m Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
DMWebImageView.h Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
DMWebImageView.m Split DMWebImageDownloader from DMWebImageView, and refactor so each class maintain its own operation 2009-09-21 03:45:04 +02:00
LICENSE Add licensing information 2009-09-19 22:24:03 +02:00
README.md Update TODO 2009-09-21 03:45:10 +02:00

README.md

Dailymotion Web Image

This library provides a drop-in remplacement for UIImageVIew with support for remote images coming from the web.

It provides:

  • Asynchronous image downloader
  • Drop-in replacement to UIImageView
  • Memory + disk image caching
  • Uses NSOperation to perform parallel downloads and caching
  • Handles cache expiration transparently

How To Use It

Most common use is in conjunction with an UITableView. Just place an UIImageView in you UITableViewCell in interface builder, and set its class to DMImageView in the identity panel. Then, in tableView:cellForRowAtIndexPath:, you just have to send a setImageWithURL: to the DMWebImage view with the URL of the image.

If in interface builder, an image was configured in the UIImageView, this image will be used as a placeholder, waiting for the web image to be loaded.

Future Enhancements

  • Easy way to use it with default UITableView styles without requiring to create a custom UITableViewCell
  • LRU memory cache cleanup instead of reset on memory warning