UIButton animation with animation State changes of the state button after the animation is completed

I am animating a UIButton with animationImages and its animation is successful, but after the animation UIButton automatically disappears. How can I avoid extinction?

 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]; 
+5
source share
1 answer

I have a solution, actually there is a property. Associated with a UIButton called Disabled Adjust Image , I just uncheck it and it did the trick.

enter image description here

+1
source

All Articles