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

Ios 使用animationImages设置UIButton动画在动画完成后更改按钮状态淡入淡出,ios,objective-c,animation,uibutton,Ios,Objective C,Animation,Uibutton,我正在使用animationImages设置UIButton的动画,并成功地设置了动画,但动画完成后,UIButton会自动淡出。我怎样才能避免淡出 sender.imageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animatio

我正在使用
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];

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


这是否发生在iAction方法内部?是的,它发生在iAction方法内部动画完成后,是否可以尝试重置图像状态?参考完成手柄的链接我已经读过了,但这不是正确的方法,我想知道为什么它会这样,你在添加动画图像之前已经设置了按钮图像了吗<代码>[按钮设置图像:状态图像:uicontrol状态正常]