1 Answer
1

I don't think you can count on UIImageViewanimationImages to give you 30FPS everywhere and everytime.

Indeed, this is meant for very simple and "opportunistic" animations. If you google for it, you will find reports of that method hogging a device (in specific conditions). On the other hand, if your images are small, then chances are that it could work, but you get no guarantees (nor ways to enforce the FPS you need).

So i need exactly 15 images for a 1 second animation - is there a special calculation i can use when i have more or less than 15 images that have to be animated in exactly one second?

Disclaimer: I can't find a reference for this I believe that it will skip images if it falls behind, similar to what Core Animation does when skipping values, to do its best to take the specified duration. I didn't find any mention of this thought.
–
David RönnqvistOct 4 '12 at 9:49

is the 30fps the standard for the animations by using animationImages? I mean, how can i be sure to use 15 images for a 1 second animation and not 20,30 or 60... Is there any possibility to read out the actual fps then?
–
user1719539Oct 4 '12 at 10:22

if you have 15 images and you animate through them using animationImages and specifying 1sec animationDuration, then you will have 15fps. if you specify 0.5sec as animationDuration or your give 30 images, then you will have 30fps. hope this helps.
–
sergioOct 4 '12 at 11:01