异步图片免费下载使用故事板和放大器的UITableView; iOS5的 [英] Async Images Download in a UITableView using Storyboard & ios5

查看:121
本文介绍了异步图片免费下载使用故事板和放大器的UITableView; iOS5的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UITableView,我不得不喜欢异步下载图像。
我怎么能使用的iOS5和故事用?

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

在此先感谢

推荐答案

我有非常相同的问题,我所做的就是采取从SDWebImage的 https://github.com/rs/SDWebImage ,开拓自身的项目,并手动将其升级为目标C ARC(重构 - >转换成Objective C的ARC)。

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"

,然后在我的 - (UITableViewCell的*)的tableView:(UITableView的*)的tableView的cellForRowAtIndexPath:(NSIndexPath *)indexPath方法,l​​oks是这样的:

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

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

简单!

这篇关于异步图片免费下载使用故事板和放大器的UITableView; iOS5的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆