I would like to move an animated UIImage across the screen. How is this possible?
Here is my code so far with UIImage animation:
self.myImageWalk.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"img01.png"],[UIImage imageNamed:@"img02.png"], [UIImage imageNamed:@"img03.png"], [UIImage imageNamed:@"img04.png"], nil];
[self.myImageWalk setAnimationRepeatCount:5];
[self.myImageWalk setAnimationDuration:2];
[self.myImageWalk startAnimating];
declare this function .h file
.m file
then call wherever u want to animate
here change 300,300 to ur wish to get animate to various position.