我有一个作用于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"];
如何使得物体从上方进入屏幕后,落下一次弹跳停留不动?
非常感谢您的任何帮助!