How do you manually rotate a view 180 degrees using CGAffineTransformMakeRotation?
Asked
Active
Viewed 1,747 times
1 Answers
3
UIView *myView = [[UIView alloc] init];
[myView setTransform:CGAffineTransformMakeRotation(M_PI)];

Ryan Poolos
- 18,421
- 4
- 65
- 98
-
The transform property is set on *an instance* of UIView (i.e. myAwesomeView) – David Rönnqvist May 01 '12 at 10:48
-
This is true. I've edited my answer to reflect this incase anyone else comes along without that knowledge. – Ryan Poolos May 01 '12 at 11:55