[英]Async Images Download in a UITableView using Storyboard & ios5
I have a UITableView and I had like to download images asynchronously. 我有一个UITableView,我想异步下载图像。 How can I do using using ios5 and storyboards?
如何使用ios5和故事板?
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). 我遇到了同样的问题,我所做的就是从https://github.com/rs/SDWebImage提取SDWebImage,自己打开项目,然后手动将其升级到Objective C ARC(重构->转换到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: 然后在我的-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath方法中,它看起来像这样:
[cell.videoImageView setImageWithURL:[NSURL URLWithString:thumbnailURLString]];
Simple! 简单!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.