Skip to content

Instantly share code, notes, and snippets.

@tmdvs
Created August 1, 2011 21:34
Show Gist options
  • Save tmdvs/1119060 to your computer and use it in GitHub Desktop.
Save tmdvs/1119060 to your computer and use it in GitHub Desktop.
- (void) didRotate:(UIRotationGestureRecognizer *)sender
{
CGAffineTransform original = [[self view] transform];
CGAffineTransform newTransform = CGAffineTransformMakeRotation([sender rotation]);
[[self view] setTransform:CGAffineTransformConcat(original, newTransform)];
[sender setRotation:0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment