Reputation: 81
I am animating UIButton
with animationImages
and its animating successfully, but after animation completion the UIButton
fade out automatically. How can i avoid the fade out?
sender.imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_01%@",ipadVar]],
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_02%@",ipadVar]],
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_03%@",ipadVar]],
nil];
sender.imageView.animationDuration = 1.f;
sender.imageView.animationRepeatCount = 4.f;
[sender.imageView startAnimating];
Upvotes: 5
Views: 143
Reputation: 81
I got the solution, actually there are is a property Associated with UIButton
called Disabled Adjust Image
, I just uncheck and it did the trick.
Upvotes: 1