我正在使用 animationImages
为 UIButton
制作动画并成功制作动画,但在动画完成后 UIButton
会自动淡出。如何避免淡出?
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];
最佳答案
关于ios - 使用 animationImages 为 UIButton 设置动画会在动画完成后更改按钮状态淡入淡出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39589524/