使用animationImages动画UIButton在动画完成后更改按钮状态淡出

Moe*_*rif 5 animation objective-c uibutton ios

我动画UIButtonanimationImages和其成功的动画,但动画完成后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];
Run Code Online (Sandbox Code Playgroud)

Moe*_*rif 1

我得到了解决方案,实际上有一个与UIButton调用相关的属性Disabled Adjust Image,我只是取消选中,它就成功了。

在此输入图像描述