YLGIFImage 0.11

YLGIFImage 0.11

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total480,808
Week0
Month0

Installs

Apps7,307
Pod Tries3
Test Targets195
powered by Segment

GitHub

Stars1,676
Watchers48
Forks197
Issues15
Contributors2
Pull Requests2

Code

Files4
LOCLines of Code 413


  • By
  • liyong03

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!

Get Start

Using CocoaPods 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! I referred a lot to this project, especially using CADisplayLink to play the animation.