# YLGIFImage **Repository Path**: xu_pangpangpang/YLGIFImage ## Basic Information - **Project Name**: YLGIFImage - **Description**: UIImage的扩展类,支持gif - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-08-01 - **Last Updated**: 2023-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README YLGIFImage ========== Asynchronized GIF image class and Image viewer supporting play/stop GIF images. It just use very less memory. Following GIF usually will cost almost 600MB memory if it is fully decoded (800x600x389x4 Bytes), but using YLGIFImage, it just use about 30MB memory. For this gif file, iOS Pinterest also will crash, but using YLGIFImage, it won't! ####Swift support I created another project to implement YLGIFImage using swift, it's called [YLGIFImage-Swift](https://github.com/liyong03/YLGIFImage-Swift). ####Get Start Using [CocoaPods](http://cocoapods.org/) to get start, you can add following line to your Podfile: pod 'YLGIFImage' ####Using it For using YLGIFImage, it's very simple: YLImageView* imageView = [[YLImageView alloc] initWithFrame:CGRectMake(0, 160, 320, 240)]; [self.view addSubview:imageView]; imageView.image = [YLGIFImage imageNamed:@"joy.gif"]; Here is the demo looks like: Thanks ========== Thanks to [OLImageView](https://github.com/ondalabs/OLImageView)! I referred a lot to this project, especially using CADisplayLink to play the animation.