【发布时间】:2017-04-19 06:15:31
【问题描述】:
我正在尝试从URL 下载图像,对其进行模糊处理、缓存,然后将其显示在表格视图单元格中。
我这样做了:
let resource = ImageResource(downloadURL: url, cacheKey: recipe.uid)
backgroundImageView.kf.setImage(with: resource)
backgroundImageView.image = backgroundImageView.image?.kf.blurred(withRadius: CGFloat(7.6))
但这意味着我会在将图像设置为我不想要的图像视图后模糊图像。 有什么建议么?谢谢!
【问题讨论】:
标签: swift kingfisher