2017-03-28 73 views

回答

2

嘗試旋轉此代碼。

CGAffineTransform newTransform = CGAffineTransformMakeRotation((CGFloat)(angel)); 

self.imageView.transform = newTransform; 
0

試試這個代碼旋轉。

CGFloat degrees = 45.0f; //the value in degrees 
CGFloat radians = degrees * M_PI/180; 
imageView.transform = CGAffineTransformMakeRotation(radians);