I don't actually know the animation you're talking about, but assuming I understand what it does, then one simple way is to use the built in UIImageView
support for displaying a series of images as an animation. You then need a separate image for each frame.
NSArray* imageFrames = [NSArray arrayWithObjects:[UIImage imageNamed:@"frame1.png"],
[UIImage imageNamed:@"frame2.png"],
[UIImage imageNamed:@"frame3.png"],
[UIImage imageNamed:@"frame4.png"],
nil];
UIImageView* imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,100,100)];
[imageView setAnimationImages:imageFrames];
[imageView setAnimationDuration:10];
[imageView setAnimationRepeatCount:3];
The above creates a UIImageView
with 4 frames that animate over 10 seconds. The animation repeats 3 times.
See the UIImageView
documentation for more information.
Obviously then you actually need a series of images to animate.