假設有個 outlet 連到畫面上的 image view。
一. 修改 origin
imageView.frame.origin =…
利用 CGAffineTransform 的 init(rotationAngle:) 旋轉,傳入參數控制旋轉的角度。