scrollview或mapview响应baseView滑动事件
2022-05-27 本文已影响0人
noname004
#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