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.
Original article: Open Source UIImageView Extension Providing Proper Support For Animated GIFs
©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.





