ios - SDWebImage 展示方式求解?
黄舟
黄舟 2017-04-18 09:45:25
0
3
522

SDWebImage 有没有类似 YYWebImage 的 YYWebImageOptionSetImageWithFadeAnimation属性?
图片的展示方式是渐显的,而不是 duang 一下展示出来?
SDWebImageOptions枚举类型也没又发现类似的方式。

如果没有这种展现方式,应该如何修改源码?我在

- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock

添加动透明动画,并没什么效果。

求大神解释。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
刘奇

SDWebImage does not have this parsing method, please refer to yy blog for details
Just call the alpha animation when completed

阿神

Customize UIImageView category and call it inside sd_setImageWithURL... 并添加 SDWebImageAvoidAutoSetImage 的 options ,在完成时把 self.image = image; 放到 UIView animationWith... block.

伊谢尔伦

https://segmentfault.com/q/10...

It’s exactly the same as your question. Just take a look. It’s just that the effect of the animation is different. The specific location is also marked on the answer page

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template