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

Commit

Permalink
add readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shichangone committed Nov 28, 2012
1 parent 4da81ba commit be696b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions readme.md
@@ -0,0 +1,12 @@
# How to use it?

Use SCGIFImageView as a UIImageView to show a gif image with animation.
since it's a subclass of UIImageView, it can also support other image formats that UIImageView support.

NSString* filePath = [[NSBundle mainBundle] pathForResource:@"1.gif" ofType:nil];
SCGIFImageView* gifImageView = [[[SCGIFImageView alloc] initWithGIFFile:filePath] autorelease];
gifImageView.frame = CGRectMake(0, 0, gifImageView.image.size.width, gifImageView.image.size.height);
gifImageView.center = self.view.center;
[self.view addSubview:gifImageView];


0 comments on commit be696b4

Please sign in to comment.