Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 679 Bytes

File metadata and controls

16 lines (10 loc) · 679 Bytes

UIImageView-AnimationForSDWebImage

一个SDWebImage 类别 加载图片有一个过度动画效果,就像网易新闻加载图片动画过渡一样

用法

[self.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://wenwen.soso.com/p/20090901/20090901120123-329341688.jpg"] placeholderImage:[UIImage imageNamed:@"bg_merchant_photo_placeholder_big"] options:0 completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        self.imageView.contentMode = UIViewContentModeScaleAspectFill;


    } fadeAnimation:YES]

gif 效果图