Skip to content

Instantly share code, notes, and snippets.

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