2013-05-06 2 views
0

Dans mon application, je propose un bouton avec ce code:IOS: décélération de l'animation pour un bouton

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

mais je veux que l'animation décélérer premier à arriver au point, comment puis-je le faire?

Répondre

1

Ajouter cette ligne,

[UIView setAnimationCurve: UIViewAnimationCurveEaseOut]; 
+0

il ne fonctionne pas, pourquoi? – CrazyDev

Questions connexes