Created
May 4, 2015 14:56
-
-
Save nvkiet/408f60b18e042794a570 to your computer and use it in GitHub Desktop.
GestureRecognizerTableView
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
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { | |
SmoothLineView *smoothLineView = (SmoothLineView *)[self.tableFooterView viewWithTag:SMOOTH_LINE_VIEW_TAG]; | |
CGRect smoothLineViewFrame = [smoothLineView convertRect:self.tableFooterView.bounds toView:self]; | |
CGPoint touchedPoint = [gestureRecognizer locationInView:self]; | |
BOOL result = !CGRectContainsPoint(smoothLineViewFrame, touchedPoint); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment