[英]How to load an image in kingfisher without an image view?
Kingfisher allows for some easy methods to load images asynchronously from network or cache, for instance: Kingfisher 允许一些简单的方法从网络或缓存中异步加载图像,例如:
imageView.kf.setImage(with: imageUrl)
Is there a way to load the image directly outside of the context of the image view?有没有办法在图像视图的上下文之外直接加载图像? Ie something like this:
即是这样的:
Kingfisher.loadImage(with: imageUrl) { image in ... }
Yeah you just use是的,你只是使用
KingfisherManager.shared.retrieveImage
That function should have everything you need该功能应该有你需要的一切
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.