在iPhone上延迟加载图像 [英] lazyload images on the iphone

查看:70
本文介绍了在iPhone上延迟加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一个好的教程,该教程显示了如何在UITableView中延迟加载图像吗?我已经在网上搜索过,但是我发现只有它看起来像我想要的那样很难遵循,因为只显示了部分代码,而且我是新来的,所以我不明白如何将所有内容连接起来.

Does anyone know of a good tutorial that shows how to lazy load images in a UITableView? I've searched online but the only one I found that looked like it did what I wanted was hard to follow because only parts of the code were shown and I'm new at this so I didn't understand how to hook everything up.

推荐答案

我建议您在github上签出SDWebImage项目,当我需要将远程图像加载到单元格中时,将其用于表视图.

I suggest you check out the SDWebImage project on github, I use it for my table views when I need to load a remote image into the cells.

https://github.com/rs/SDWebImage

这篇关于在iPhone上延迟加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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