使用SDWebImage
pod 'SDWebImage/GIF'
pod 'FLAnimatedImage'
#import "FLAnimatedImageView+WebCache.h"
FLAnimatedImageView *imageView = [[FLAnimatedImageView alloc] init];
[imageView sd_setImageWithURL: (nullable NSURL *) placeholderImage:self.placeholderImage]