Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

UIImageView+NDVAnimatedGIFSupport

Ever wanted to jam an image brimming with animated GIF goodness into a UIImageView?

Well you're in luck—with this UIImageView category, you can do precicely that!


Got an NSURL? No problem:

NSURL *imageURL = [[NSBundle mainBundle] URLForResource:@"monkey-riding-a-goat" withExtension:@"gif"];
UIImageView *imageView = [[[UIImageView alloc] ndv_initWithAnimatedGIFURL:imageURL] autorelease];

Perhaps you have an NSData? No sweat:

NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
UIImageView *imageView = [[[UIImageView alloc] ndv_initWithAnimatedGIFData:imageData] autorelease];

Now you too can keep the dream of the 90s alive with UIKit!

About

The dream of the 90s is alive in UIKit

Resources

Stars

46 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages