Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. - (UIView *) hitTest:(CGPoint) point withEvent:(UIEvent *)event {
  2. if ([self pointInside:point withEvent:event]) {
  3. return scrollView;
  4. }
  5. return nil;
  6. }
  7.  
  8. -(UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event
  9. {
  10. UIView* child = nil;
  11. if ((child = [super hitTest:point withEvent:event]) == self)
  12. return self.scrollView;
  13. return child;
  14. }
Add Comment
Please, Sign In to add comment