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];
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With