我正在使用CGAffineTransformMakeRotation旋轉我的按鈕。但我的按鈕越來越縮放(大或小)根據我的值rotate.How停止縮放我的按鈕?示例代碼我已經使用CGAffineTransformMakeRotation縮小我的圖像
UIView.animateWithDuration(2.5, animations: {
self.btnMeter.transform = CGAffineTransformRotate(CGAffineTransformIdentity, (45 * CGFloat(M_PI))/180.0)
})
在代碼中您正在進行轉換的位置?在'viewDidLoad'中?並且,是的,請發佈您的轉換代碼。 –
我編輯了我的問題 – Madhumitha