我的代码有效并且我制作了动画,但我不确定如何执行此操作:
...在 MonoTouch 中。
这是我所拥有的:
public partial class MyCustomView: UIView
{
// Code Code Code
private void RunAnimation()
{
CAKeyFrameAnimation pathAnimation = new CAKeyFrameAnimation();
pathAnimation.KeyPath = "position";
pathAnimation.Path = trail; //A collection of PointFs
pathAnimation.Duration = playbackSpeed;
Character.Layer.AddAnimation(pathAnimation,"MoveCharacter");
}
//Code Code Code
}
MyCustomView 已经从 UIView 继承,我不能从两个类继承。完成动画后,我将如何调用名为“AnimationsComplete()”的函数?