Skip to content

Instantly share code, notes, and snippets.

@yuxiangq
Created November 19, 2014 09:56
Show Gist options
  • Save yuxiangq/de8a69b4873c4b02be32 to your computer and use it in GitHub Desktop.
Save yuxiangq/de8a69b4873c4b02be32 to your computer and use it in GitHub Desktop.
UIRotationGestureRecognizer的使用
UIRotationGestureRecognizer *rotationGestureRecognizer =
[[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotationHandle:)];
[[self view] addGestureRecognizer:rotationGestureRecognizer];
-(void)rotationHandle:(UIRotationGestureRecognizer*)sender{
CGFloat *rotation = sender.rotation;//旋转弧度
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment