我想動畫的圖像UIButton
。動畫運行正常,但之後它總是在按鈕上放上灰色色調(,好像它是突出顯示/選中)。iOS - 動畫UIButton ImageView圖像導致按鈕被選中後
代碼:
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];
可能是你有圖像的灰度,從而停留在動畫的結尾。 。? – iphonic