Created
November 19, 2014 09:56
-
-
Save yuxiangq/de8a69b4873c4b02be32 to your computer and use it in GitHub Desktop.
UIRotationGestureRecognizer的使用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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