赵新强 赵新强 - 3 months ago 8
iOS Question

it’s fuzzy effect placeholder before loading it from severs?

Fuzzy before loading, how to do?Before my train of thought is that whether the fuzzy rendering has taken it on the server, and then when you have Internet access when loading in another image???????For the core image framework know little, maybe the question is stupid, but I hope you give me some idea, thank you...enter image description here

Here thank you in advance…….

Answer

I have been using YYWebImage CocoaPod to do this.

Here is my code

var url = "http://github.com/logo.png"
myImageView.yy_setImageWithURL(NSURL.init(string: url), options: YYWebImageOptions.SetImageWithFadeAnimation)

Please refer to this link. You will find a lot of things to do with image loading.. https://cocoapods.org/pods/YYWebImage