Created
October 16, 2008 03:04
-
-
Save augustjoki/17069 to your computer and use it in GitHub Desktop.
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
- (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