以下代碼是循環中的動畫按鈕。將動畫添加到按鈕後,目標操作會丟失
[UIView setAnimationRepeatCount: 0];
self.introButton.transform = CGAffineTransformMakeScale(1.1, 1.1);
[UIView animateWithDuration: 0.4
delay: 0.0
options: UIViewAnimationOptionCurveEaseOut | UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat
animations: ^{
self.introButton.transform = CGAffineTransformIdentity;
}completion: ^(BOOL finished){
//Code
}];
然而,加入這個動畫後,我沒有更多的能夠獲得按鈕潤色內行動。我如何動畫和獲取動作?
這會起作用,但實際上並非如此必須去解決這個問題。 – 2014-09-13 15:22:18
@JesseRusak是的你是對的。在這裏學習新東西:) – dopcn 2014-09-13 15:28:54