Latest 0.11
Homepage https://github.com/liyong03/YLGIFImage
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit, MobileCoreServices, ImageIO, CoreGraphics
Authors

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.

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.

Latest podspec

{
    "name": "YLGIFImage",
    "version": "0.11",
    "summary": "Async GIF Image decoder and ImageView which supports playing GIF image.",
    "homepage": "https://github.com/liyong03/YLGIFImage",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "liyong03": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liyong03/YLGIFImage.git",
        "tag": "0.11"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "YLGIFImage",
    "frameworks": [
        "Foundation",
        "UIKit",
        "MobileCoreServices",
        "ImageIO",
        "CoreGraphics"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This