延迟加载多个滚动视图和动态图像 [英] Lazy loading with multiple scrollview and dynamic images

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

问题描述

我很难解决这个问题,将不胜感激,我的问题是我正在用tableview构建一个多图像轮播,其中包含带有滚动视图的自定义单元格,每个滚动视图中都显示了从xml中获取的scrollview显示图像通过互联网,这意味着uiimageview被添加为运行时的滚动视图子视图.我想延迟加载这些图像,这样就不会占用太多内存.我发现的样本仅使用1个滚动视图和预定义的图像计数.

I having a hard time with this one and would appreciate any help, my problem is that I'm building a multiple image carousel in a tableview it contains custom cell with scroll view in each of them the scrollview display images from xml fetched thru the internet which means uiimageview is added runtime as a scrollview subview. I want to lazy load these images so it will not take up too much memory. The samples that I've found only uses 1 scrollview and predefined image count.

提前谢谢!

推荐答案

我推荐这个github项目 https://github.com/rs/SDWebImage

i recommend this github project https://github.com/rs/SDWebImage

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

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