0
我想創建兩種方法... StartSpin和StopSpin。在StartSpin中,我需要一個UIImageView旋轉360度並循環,直到我調用StopSpin。Monotouch:創建旋轉圖像?
這裏是我的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方法中使用什麼命令來停止旋轉?
感謝
魔