从 iPhone 中的网络服务接收大数据?
在我的 iPhone 应用程序中,我必须从 webmethod 接收 1000 张图像。这将需要很长时间。 无需等待那么多时间,而是有任何过程可以从服务中逐部分获取数据。 有没有可能让我帮助一下。
提前致谢。
In my iphone application i have to recieve 1000 images from webmethod . It will take too long time.
Instead of waiting that muc time is there any process to get data from service by part by part.
Is there any possiblity let help me.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。你可以做到。我已经使用继承自
UIImageView
的AsyncImageView
实现了这一点。它的作用是将从 URL 获取的图像存储在缓存中,每当您需要再次从相同 URL 加载图像时,它只会从缓存中加载图像,从而节省大量时间。只需点击链接即可实现:
https://github.com/nicklockwood/AsyncImageView#readme
http://www.markj.net/iphone-asynchronous-table-image/
更新 1:
请查看显示我已实现的技术的图像让您在加载图像时执行其他活动。:
Yes. You can do It. I've already implemented that using
AsyncImageView
which is inherited fromUIImageView
. What it does is it stores images in Cache memory fetched from a url and whenever you need to load image from the same URL again it will simply load it from the cache memory saving a lots of time.Just follow the link for implementing that:
https://github.com/nicklockwood/AsyncImageView#readme
http://www.markj.net/iphone-asynchronous-table-image/
Update 1:
Please have a look at the image showing the technique I've implemented it lets you do other activity while images are loading.: