Created
April 26, 2011 21:26
-
-
Save threeve/943205 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#import "RAScrollClipView.h" | |
@implementation RAScrollClipView | |
@synthesize scrollView; | |
- (void)dealloc; | |
{ | |
self.scrollView = nil; | |
[super dealloc]; | |
} | |
- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event; | |
{ | |
if ([self pointInside:point withEvent:event]) | |
{ | |
point = [self convertPoint:point toView:scrollView]; | |
UIView *view = [scrollView hitTest:point withEvent:event]; | |
return view ? view : self.scrollView; | |
} | |
return nil; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment