PDA

View Full Version : Animated gif in UIImageView w. acceleration?




Danneman101
May 28, 2009, 05:18 AM
Is it possible to have an animated gif inside an UIImageView that is moved around the screen using the accelerometer?

The gif doesnt have to change its animation depending on the acceleration - it should be constant.



jnic
May 28, 2009, 06:29 AM
You can't use animated gifs, but you can use the animation methods of UIImageView (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImageView_Class/Reference/Reference.html). Take a look at the "Animating Images" section.

Danneman101
May 28, 2009, 07:06 AM
Thanks for the reply :)