简体   繁体   中英

Async Images Download in a UITableView using Storyboard & ios5

I have a UITableView and I had like to download images asynchronously. How can I do using using ios5 and storyboards?

Thanks in advance

I was having the very same problem, and what I did was take SDWebImage from https://github.com/rs/SDWebImage , open up the project on its own, and manually upgrade it to Objective C ARC (Refactor --> Convert to Objective C ARC).

When it was done being converted, I added it the individual files to my project and it works like a charm. I just

#import "UIImageView+WebCache.h"

and then in my - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath method, it loks like this:

[cell.videoImageView setImageWithURL:[NSURL URLWithString:thumbnailURLString]];

Simple!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM