Skip to content

Simple category to load animated image files into an UIImageView. This category supports GIF and APNGs (Animated PNG)

License

Notifications You must be signed in to change notification settings

Julioacarrettoni/Dev_Jac-AnimatedImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev_Jac-AnimatedImages

Simple category to load animated image files into an UIImageView. It currently support GIF and APNG (Animated PNG, or Animated Portable Network Graphic) http://es.wikipedia.org/wiki/Animated_Portable_Network_Graphics

Usage

Just add the category to your project (CocoaPods support comming soon)

It adds the following methods to UIImageView:

- (void) loadAnimatedPNGFromPath:(NSString*) path;
- (void) loadAnimatedPNGData:(NSData*) data;
- (void) loadAnimatedPNGFromALAsset:(ALAsset*) asset;
- (void) loadAnimatedPNGFromPathCGImageSourceRef:(CGImageSourceRef) isrc;

Invoking any of those into a UIImageView object will populate the required UIImageView properties:

  • animationImages
  • animationDuration
  • animationRepeatCount

Example

Check the example folder on how to use it to load a GIF or a APNG, and how to use it to load images from the Camera Roll successfully using the ALAsset object and a CGDataProviderRef

image

License

MIT

Contributing

Issues andPull Requests on GitHub are welcome.

About

Simple category to load animated image files into an UIImageView. This category supports GIF and APNGs (Animated PNG)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published