SDWebImage 有没有类似 YYWebImage 的 YYWebImageOptionSetImageWithFadeAnimation属性?
图片的展示方式是渐显的,而不是 duang 一下展示出来?
SDWebImageOptions枚举类型也没又发现类似的方式。
如果没有这种展现方式,应该如何修改源码?我在
- (void)sd_setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder options:(SDWebImageOptions)options progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDWebImageCompletionBlock)completedBlock
添加动透明动画,并没什么效果。
求大神解释。
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