对于名为的UIView finalScoreView
,我具有以下CATransition ,这使它从顶部进入屏幕:
CATransition *animation = [CATransition animation];
animation.duration = 0.2;
animation.type = kCATransitionPush;
animation.subtype = kCATransitionFromBottom;
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];
[gameOver.layer addAnimation:animation forKey:@"changeTextTransition"];
[finalScoreView.layer addAnimation:animation forKey:@"changeTextTransition"];
我如何使它下降后反弹一次,然后保持静止?它仍然应该从顶部进入屏幕,但是当它下来时会反弹。
任何帮助将不胜感激,谢谢!