我使用SDWebImage库缓存网页中的图像在我UICollectionView:我怎么能得到高速缓存图像的数据SDWebImage
cell.packItemImage.sd_setImage(with: URL(string: smileImageUrl[indexPath.row]))
,但我想保存到本地缓存的图像文件,而不是下载它们的再次
FileManager.default.createFile(atPath: newPath, contents: Data(contentsOf: URL(string: snapchildvalue[Constants.smiles.smileImageUrl] as! String)!), attributes: nil)
有没有办法让缓存图像一旦从一个URL下载