Skip to content

Instantly share code, notes, and snippets.

@threeve
Created April 26, 2011 21:26
Show Gist options
  • Save threeve/943205 to your computer and use it in GitHub Desktop.
Save threeve/943205 to your computer and use it in GitHub Desktop.
#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