SDWebImage加载网络GIF

pod 'SDWebImage/GIF'
FLAnimatedImage *image = [[FLAnimatedImage alloc]initWithAnimatedGIFData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlStr]]];
FLAnimatedImageView *imageView = [[FLAnimatedImageView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
imageView.animatedImage = image;
[self.view addSubview:imageView];

你可能感兴趣的:(SDWebImage加载网络GIF)