我用翠鸟下载图像以下列方式:直接使用retriveImage()将图像缓存到磁盘?
KingfisherManager.shared.retrieveImage(with: url!, options: nil, progressBlock: nil, completionHandler: { (image, error, cacheType, imageURL) ->() in
if let image = image {
我想知道是否有可能直接缓存它们在磁盘上?由于我正在检索大量图像,因此内存可能会不时挣扎。
我这样做的方式很好,因为我没有将图像分配给imageView,而是将它们用作Google Maps上的叠加层。我只需要知道我是否可以将它们存储在磁盘上,而不是默认情况下存储在内存中。 – Recusiwe