max_
max_

Reputation: 24481

How can I make an Asynchronous image download center for UITableViewCells?

I want to asynchronously download lots of UIImages from websites and place them in a tableView. But instead of using classes already out on the web, I would like to make my own. What is needed to do this, what callbacks should I use, and what api would be best to use?

Upvotes: 0

Views: 419

Answers (2)

Felix
Felix

Reputation: 35384

I'd encourage you to take a look at the EGOImageLoading library.

It has the ability to load images asynchronously, displays placeholder images, can cancel requests when the view disappears while the fetch is in progress, implements an image cache and provides an UIImageView subclass to take advantage of these features.

EGOImageLoading uses the following API's / classes:

  • NSURLConnection
  • NSOperationQueue
  • Grand Central Dispatch (GCD)
  • NSFileManager
  • Property Lists

Upvotes: 0

Related Questions