Skip to content

Instantly share code, notes, and snippets.

@augustjoki
Created October 16, 2008 03:04
Show Gist options
  • Save augustjoki/17069 to your computer and use it in GitHub Desktop.
Save augustjoki/17069 to your computer and use it in GitHub Desktop.
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
[super touchesEnded:touches withEvent:event];
// only forward the event UP the responder chain if this touch
// is for a scroll view (self or a subview that inherits from
// UIScrollView); the default UIScrollView implementation deals
// with subview event handling above in the [super] invocation.
UITouch *touch = [touches anyObject];
if ([touch.view isKindOfClass:[UIScrollView class]]) {
// stuff here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment