Created
August 30, 2012 06:49
-
-
Save sprhawk/3523472 to your computer and use it in GitHub Desktop.
UIGestureRecognizer
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
if (UIGestureRecognizerStateRecognized == gesture.state) { | |
} | |
在识别touch时忽略掉某些子view的response | |
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch | |
{ | |
if ([touch.view isDescendantOfView:loginButton]) { | |
return NO; | |
} | |
else if ([touch.view isDescendantOfView:tempCloseButton]) { | |
return NO; | |
} | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment