SDWebImage 有没有类似 YYWebImage 的 YYWebImageOptionSetImageWithFadeAnimation属性?
图片的展示方式是渐显的,而不是 duang 一下展示出来?
SDWebImageOptions枚举类型也没又发现类似的方式。
如果没有这种展现方式,应该如何修改源码?我在
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock
添加动透明动画,并没什么效果。
求大神解释。
怪我咯2017-04-18 09:47:25
SDWebImage does not have this parsing method, please refer to yy blog for details
Just call the alpha animation when completed
阿神2017-04-18 09:47:25
Customize UIImageView category and call it inside sd_setImageWithURL...
并添加 SDWebImageAvoidAutoSetImage
的 options ,在完成时把 self.image = image;
放到 UIView animationWith...
block.
伊谢尔伦2017-04-18 09:47:25
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