3
我現在想通過這個代碼我在同一地點每次「漣漪效應」的UIImageView
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:2.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:@"rippleEffect" ];
[imgView.layer addAnimation:animation forKey:NULL];
讓動畫製作漣漪動畫與下面的代碼,但我想觸摸點動畫上的ImageView 平均動畫將發生在用戶將點擊UIImageView
我應用此代碼,但我不能得到動畫....我只是用「imgView」替換「視圖」。 – Vishal
請同時訪問提到的[鏈接](http://stackoverflow.com/questions/5973530/iphone-having-a-ripple-effect-on-a-uiimageview) – BornCoder
我訪問該鏈接,但我不能得到動畫... ..我可以從你的代碼中獲取動畫嗎? – Vishal