Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

shichangone/SCGifExample

Repository files navigation

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];

About

Use it as UIImageView to display Gif with animation.

Resources

Stars

Watchers

Forks

Packages

No packages published