[英]Swift: how to save UIImage as data in cache, retrieve it from url, then delete it?
I would like to be able to store a Data
object (from a UIImage
) in the cache directory, and be able to retrieve it and delete it if needed.我希望能够在缓存目录中存储
Data
object (来自UIImage
),并能够在需要时检索并删除它。 How can I do so?我该怎么做?
Thank you for your help谢谢您的帮助
you can use this pod: https://github.com/onevcat/Kingfisher你可以使用这个吊舱: https://github.com/onevcat/Kingfisher
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.