旋转视图CGAffineTransformMakeRotation

时间:2012-04-28 17:33:56

标签: ios rotation

如何使用CGAffineTransformMakeRotation手动将视图旋转180度?

1 个答案:

答案 0 :(得分:3)

UIView *myView = [[UIView alloc] init];
[myView setTransform:CGAffineTransformMakeRotation(M_PI)];