//父类中重写view的方法
- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent*)event {
for (UIView *sub self.contentView.subviews){
CGRect frame = sub.frame;
if(point.x > frame.origin.x && point.x < frame.origin.x+frame.size.width&&
point.y >frame.origin.y &&point.y
return sub;
}
}
return nil;
}