Asynchronous Image Loading in Table Cells with Cache

So i’ve recently created an app that used image in the UITableView cells. When i would load the view it would take forever once the button was pressed for the view to be pushed onto the stack.

I realised it was due to the images needing to load from my server. So i implemented a number of Asynchronous Image Loading classes but they all weren’t sufficient for what i wanted.

I needed something that cached the images, something that was super easy to implement, and robust.

Enter SDWebImage

With a simple call to your UIImageView you can make image loading hassle free and much faster than traditional image loading.

[cell.imageView setImageWithURL: [NSURL URLWithString:@""]
placeholderImage: [UIImage imageNamed: @"placeholder.png"]];

You’re done!

The class also has examples in the Readme about adding Asynchronous image calls into other elements etc.


You can leave a response, or trackback from your own site.

Leave a Reply