开发者

Monotouch animation acceleration

Is it possible to create an animation with increasing speed? Something like accelerated animation.

I have some code but cannot find a way how to implement it. Googling also not helpful.

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");


Try

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜