修改代码如下:
- (UIView *) _basicHitTest: (CGPoint) point withEvent: (UIEvent *) event
{
// STUPID STUPID RAT CREATURES
// ===========================
//
// Problem: we want to do a default hit-test without UIScrollView's processing getting in the way.
// UIScrollView implements _defaultHitTest:withEvent: for this, but we can't call that due to it
// being a private API.
// Instead, we have to manufacture a call to our super-super class here, grr
/*
Method method = class_getInstanceMethod( [UIView class], @selector(hitTest:withEvent:) );
IMP imp = method_getImplementation( method );
return ( (UIView *)imp(self, @selector(hitTest:withEvent:), point, event) ); // -[UIView hitTest:withEvent:]
*/
SEL hitSelector = @selector(hitTest:withEvent:);
NSMethodSignature * signature