Skip to content

Instantly share code, notes, and snippets.

@nvkiet
Created May 4, 2015 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvkiet/408f60b18e042794a570 to your computer and use it in GitHub Desktop.
Save nvkiet/408f60b18e042794a570 to your computer and use it in GitHub Desktop.
GestureRecognizerTableView
- (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