Use it as UIImageView to display Gif with animation.
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SCGifExample.xcodeproj
en.lproj
1.gif
Default-568h@2x.png
SCGIFImageView.h
SCGIFImageView.m
SCGifExample-Info.plist
SCGifExample-Prefix.pch
SCGifExampleAppDelegate.h
SCGifExampleAppDelegate.m
SCGifExampleViewController.h
SCGifExampleViewController.m
main.m
readme.md

readme.md

How to use it?

Use SCGIFImageView as a UIImageView to show a gif image with animation.

NSString* filePath = [[NSBundle mainBundle] pathForResource:@"1.gif" ofType:nil];
NSData* imageData = [NSData dataWithContentsOfFile:filePath];

SCGIFImageView* gifImageView = [[[SCGIFImageView alloc] initWithFrame:self.view.bounds] autorelease];
[gifImageView setData:imageData];

[self.view addSubview:gifImageView];