iOS超出父视图后点击事件不响应
2019-11-08 本文已影响0人
iOS开发小学生
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *view = [super hitTest:point withEvent:event];
CGPoint tempPoint = [self.delbBut convertPoint:point fromView:self];
if ([self.XXXView pointInside:tempPoint withEvent:event]) {
return self.XXXView ;
}
return view;
}