i got the following code:
test.image = [testArray lastObject];
test.animationImages = testArray;
test.animationDuration = 1;
test.animationRepeatCount = 1;
[test startAnimating];
I am sure that one day i read that it is possible to “rewind” an animation but i can’t find that solution any more – is there a better solution than ordering (DESC) the array?
Thanks!
You can reverse the animation by accessing the reverseObjectEnumerator’s objects:
You can then pass that into the animation:
Or you could look into UIViewAnimationOptionAutoreverse, but i’m not sure that it’s entirely what you’re looking for.