I need to display an animation in which the frames for the animation should be displayed for different durations. This could be easily solved if the UIImageView supported animated GIFs, but it doesn't.
What I want would look something like this:
- Show MyImage01.png for 2 seconds.
- Show MyImage02.png for 0.5 seconds.
- Show MyImage03.png for 1 second.
- Loop, start from step 1.
I don't see any way to set a different duration for each frame when using setAnimationImages:
with the UIImageView.
Does anyone know how this can be achived?
Of course, one way to achieve this would be to set the animation duration to 0.25 seconds and show the same image several times in a row but this does not really seem like an ideal way of achieving this.