Xamarin.iOSでオブジェクトを移動させながらアニメーションを実装する

By | 2013/04/22
Pocket

var theAnimation = CABasicAnimation.FromKeyPath("transform.translation.x");
theAnimation.Duration = 1;
theAnimation.From = NSNumber.FromFloat(0f);
theAnimation.To = NSNumber.FromFloat(-60f);
exampleLabel.Layer.AddAnimation(theAnimation, "animateLabel");