2011-03-24 4 views
1

Est-il possible de créer une animation avec une vitesse croissante? Quelque chose comme l'animation accélérée.Accélération d'animation Monotouch

J'ai du code mais je n'arrive pas à trouver un moyen de l'implémenter. Googling également pas utile.

CABasicAnimation animation = CABasicAnimation.FromKeyPath("opacity"); 
animation.To = NSNumber.FromFloat(0.1f); 
animation.Duration = 1.4f; 
animation.Delegate = new ExponencialSpeedAnimationDelegate(); 
animation.RepeatCount = 3; 
this.Layer.AddAnimation(animation, "opacity"); 

Répondre

4

Essayez

animation.TimingFunction = CAMediaTimingFunction.FromName (CAMediaTimingFunction.EaseIn);