FLAnimatedImage iOS 的 Gif 渲染引擎 项目简介
FLAnimatedImage 是 iOS 的一个渲染 Gif 动画的引擎。功能:可同时播放多个 Gif 动画,速度媲美桌面浏览器可变帧延迟内存占用小可在第一次循环播放时消除或者阻止延迟动画的帧延迟解析性能媲美浏览器示例代码:FLAnimatedImage *image = [FLAnimatedImage animatedImageWithGIFData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif"]]];
FLAnimatedImageView *imageView = [[FLAnimatedImageView alloc] init];
imageView.animatedImage = image;
imageView.frame = CGRectMake(0.0, 0.0, 100.0, 100.0);
[self.view addSubview:imageView];示例截图:
FLAnimatedImageView *imageView = [[FLAnimatedImageView alloc] init];
imageView.animatedImage = image;
imageView.frame = CGRectMake(0.0, 0.0, 100.0, 100.0);
[self.view addSubview:imageView];示例截图: