Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
Ive got a UIImage that is animated with 26 images in a perpetual loop.

On top of that, the image is accelerated (when tilting the iphone, the imaged goes to the right or the left).

I want to be able to pause and resume the animation by the press of a button, but I cant find a pause-function for animated uiimages.

The problem with [myImage stopAnimating]; is that the image disappears completely - I need it to stay on the screen.

I could probably put another static image with the correct image-frame in the position where the animation was last, but that would be an awful lot of work compared to a pause-function...
 

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
Thanks - that helped for the stop-part. For restart Im just getting the location of the stopped image, remove it, and then make a new one.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.