Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source UIImageView Extension Providing Proper Support For Animated GIFs

  •  
  •  
  •  
  •  
  •  

Since UIImageView doesn’t provide support for animated GIF files- at least not beyond showing the first frame.

There are a few simple implementations available, but they seem to not be without their problems.  Here’s a library with proper support so you never find yourself splitting the images and coding in the animations to get things working right.

OLImageView from Ondalabs looks to solve issues with current libraries namely:

– They divided evenly the total delay between frames (Yeah, usually GIFs have even delays but when they don’t…)
– Loaded synchronously. Which is fine except the process per frame is heavy, and only when finished the image was visible.

OLImageVIew also performs a number of other optimizations to provide a consistent experience.

You can find OLImageView on Github here.

A nice library to find handy in case you ever find yourself working with animated gif files.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments