在我的应用程序中,我使用以下代码移动一个按钮:
[UIView beginAnimations:@"timerView" context:nil];
[UIView setAnimationDuration:0.5];
[timerView setCenter:CGPointMake(967, 80)];
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
但我希望动画首先减速到达这一点,我该怎么做?
答案 0 :(得分:1)
添加此行,
[UIView setAnimationCurve: UIViewAnimationCurveEaseOut];