我有旋轉圖像查看驗證碼:旋轉的UIImageView 1度
func rotateAgain(){
UIView.animateWithDuration(1.0,
delay: 0.0,
options: .CurveLinear,
animations: {self.imageView.transform = CGAffineTransformRotate(self.imageView.transform, 1.degreesToRadians)},
completion: {finished in if self.rotating { self.rotateOnce() }})
}
什麼是錯誤的代碼?
我的回答有幫助嗎? –