#import "ZNBaseView.h"
@implementation ZNBaseView
- (UIView*)hitTest:(CGPoint)pointwithEvent:(UIEvent*)event{
if (self.respondView) {
///触点是否落在本视图上
if([selfpointInside:pointwithEvent:event]) {
returnself.respondView;
}
}
return[superhitTest:pointwithEvent:event];
}
@end
网友评论