I have a few UIButtons that I’d like to trigger short 5-10 frame animations when pressed in the middle of the screen along with other nonrelated stuffs. Can I just drop one UIImageView in IB and update it, somehow, programmatically? It doesn’t need to be overly complex, I don’t even mind if it’s hard coded, for now since it’s such a small project.
Thanks.
Here’s an example of the easiest way you do an animation with just a few frames is:
Declare an
IBOutlet UIImageView *timerAnimationand link it to your UIIMageView in IB. Add some number of images to your resources, such as you see needed below. Then load the images into an array – see the code:This will run your animation until you call
[timerAnimation stopAnimating];