2013-05-06 64 views
0

在我的應用我移動按鈕使用此代碼:IOS:動畫減速的按鈕

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

,但我想在動畫減速最先到達的地步,我該怎麼辦呢?

回答

1

加入這一行,

[UIView setAnimationCurve: UIViewAnimationCurveEaseOut]; 
+0

它不工作,爲什麼? – CrazyDev 2013-05-06 16:21:19