【发布时间】:2017-08-21 10:06:09
【问题描述】:
【问题讨论】:
标签: ios objective-c image rotation transformation
【问题讨论】:
标签: ios objective-c image rotation transformation
试试这个代码旋转。
CGAffineTransform newTransform = CGAffineTransformMakeRotation((CGFloat)(angel));
self.imageView.transform = newTransform;
【讨论】:
试试这个代码进行轮换。
CGFloat degrees = 45.0f; //the value in degrees
CGFloat radians = degrees * M_PI/180;
imageView.transform = CGAffineTransformMakeRotation(radians);
【讨论】:
【讨论】: