iOS版 - 异步下载图像 [英] iOS - Asynchronous Image Downloading

查看:90
本文介绍了iOS版 - 异步下载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写这是会在一个UIImageView中显示我的服务器上找到图像的应用程序。

I am writing an app which is going to be displaying images found on my server in a UIImageView.

我需要的东西,将异步下载图像,并将它缓存,而将它放在UIImageView的。
下载也需要能够在我preSS一个按钮被取消。

I need something that will asynchronously download the image and cache it while putting it in the UIImageView. The download also needs to be able to be cancelled when I press a button.

任何人都可以点我可以做到这一点的东西方向?

Can anyone point me in the direction of something that can do this?

推荐答案

在老时间,该框架是ASIHTT prequest而是一个废弃的项目现在。这 https://github.com/AFNetworking/AFNetworking 现在似乎是受欢迎的。

In the old times the framework for that was ASIHTTPRequest but is an abandoned project now. This https://github.com/AFNetworking/AFNetworking seems to be popular now.

这篇关于iOS版 - 异步下载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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