我想创建两个方法... StartSpin 和 StopSpin。在 StartSpin 中,我需要一个 UIImageView 来旋转 360 度并循环它,直到我调用 StopSpin。
到目前为止,这是我的 StartSpin ......
private void StartSpin () {
UIView.Animate (
1,
0,
UIViewAnimationOptions.Repeat,
() => {
CGAffineTransform t = CGAffineTransform.MakeIdentity();
t.Translate(0, 0);
t.Rotate((float)(3.14));
this._imageViewWait.Transform = t;
},
() => {}
);
}
这是我的两个问题...
如何让它旋转 360 度?
我应该在 StopSpin 方法中使用什么命令来停止旋转?
谢谢
魔精