我正在尝试为 a 的图像设置动画UIButton
。动画运行良好,但之后它总是在按钮上加上灰色调(好像它被突出显示/选中)。
代码:
NSArray *images = [[NSArray alloc] init];
images = [NSArray arrayWithObjects:
[UIImage imageNamed:IMAGE1],
[UIImage imageNamed:IMAGE2],
[UIImage imageNamed:IMAGE3],
[UIImage imageNamed:IMAGE4],
nil];
iconBobble.imageView.animationImages = images;
iconBobble.imageView.animationDuration = 1.5;
iconBobble.imageView.animationRepeatCount = 1;
[iconBobble.imageView startAnimating];