本文介绍了AFNetworking 3.0 setImageWithURLRequest下载进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用类别和。
此我用过3.0版本的版本已经停止工作了。
This category, which I did use for versions up till 3.0 has stopped working now.
这是我自己的实验,遗憾的是,目前随机崩溃。
Here is my own experimental version which sadly, for the moment, crashes randomly.
推荐答案
以下是AFNetworking 3.0的修改版本,您可以使用 UIImageView从服务器加载图像时显示进度+ AFNetworking 类别。
Here is the modified version of AFNetworking 3.0 in which you can show a progress while loading image from server using UIImageView+AFNetworking category.
https://github.com/rushisangani/AFNetworking
请用原始AFNetworking文件替换以下文件。
Please replace following files with original AFNetworking files.
UIImageView+AFNetworking.h,
UIImageView+AFNetworking.m,
UIImage+ImageDownloader.h,
UIImage+ImageDownloader.m
注意:如果你更新你的pod,那么这将被删除。
NOTE: If you update your pod then this will be removed.
这篇关于AFNetworking 3.0 setImageWithURLRequest下载进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!