0

在我的应用程序中,我使用以下代码移动了一个按钮:

[UIView beginAnimations:@"timerView" context:nil];
    [UIView setAnimationDuration:0.5];
    [timerView setCenter:CGPointMake(967, 80)];
    [UIView setAnimationDelegate:self];
    [UIView commitAnimations];

但我希望动画首先减速到达点,我该怎么做?

4

1 回答 1

1

添加这一行,

 [UIView setAnimationCurve: UIViewAnimationCurveEaseOut];
于 2013-05-06T15:43:13.617 回答