I have image view, if click button talking tom cat will play with animationRepeatCount:2, after this, I want to hide image view. How to hide that image view?
- (IBAction)catBlinkButton:(UIButton *)sender {
self.imageView.hidden = NO;
self.imageView.animationDuration = 2;
self.imageView.animationRepeatCount = 2;
self.imageView.animationImages = [[NSArray alloc]initWithObjects:
[UIImage imageNamed:@"cat_blink0000.png"],
[UIImage imageNamed:@"cat_blink0001.png"],
[UIImage imageNamed:@"cat_blink0002.png"],
nil];
[self.imageView startAnimating];
}
This is my code...