Created
November 19, 2014 06:31
-
-
Save yuxiangq/af83a2477e014f5f79b9 to your computer and use it in GitHub Desktop.
UIPinchGestureRecognizer的用法
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
-(void)initUIPinchGestureRecognizer{ | |
UIPinchGestureRecognizer *pinchGestureRecognizer=[[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector:(pinchHandle:)]; | |
[self.view addGestureRecognizer:pinchGestureRecognizer]; | |
} | |
-(void)pinchHandle:(UIPinchGestureRecognizer*)sender{ | |
CGFloat scale = sender.scale;//缩放比例 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment