gpt4 book ai didi

ios - Alamofireimage 如何将图像保存到磁盘缓存?

转载 作者:搜寻专家 更新时间:2023-10-31 08:32:16 26 4
gpt4 key购买 nike

我正在尝试找出是否可以使用 Alamofireimage 强制将图像保存在磁盘上.查看源代码,我找不到将图像实际保存到磁盘的位置。有人知道吗?

最佳答案

可以将图像请求的响应保存在磁盘上。您可以使用所需的 NSURLCache 修改配置来初始化 ImageDownloader并将其也设置为 UIImageView.af_sharedImageDownloader。 Here I've posted an example method for that.

关于ios - Alamofireimage 如何将图像保存到磁盘缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37565037/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com