Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

超出父视图无效 设置了hittest也不行 #79

Open
Roron0a opened this issue Oct 11, 2019 · 0 comments
Open

超出父视图无效 设置了hittest也不行 #79

Roron0a opened this issue Oct 11, 2019 · 0 comments

Comments

@Roron0a
Copy link

Roron0a commented Oct 11, 2019

//- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
//{
//    UIView *view = [super hitTest:point withEvent:event];
//    if (view) {
//        return view;
//    } else {
//        for (UIView * v in self.subviews) {
//            if (CGRectContainsPoint(v.frame, point)) {
//                return v;
//            }
//        }
//        return nil;
//    }
//    return view;
//}

是我设置的不对还是?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant