Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

About the custom view cannot respond to the click event #470

Open
ZhangJinRongBlog opened this issue Mar 5, 2021 · 2 comments
Open

About the custom view cannot respond to the click event #470

ZhangJinRongBlog opened this issue Mar 5, 2021 · 2 comments

Comments

@ZhangJinRongBlog
Copy link

Only modify Add UITapGestureRecognizer For customView., I modify a method work as well version 1.8.1

@HideOnBushTuT
Copy link

HideOnBushTuT commented Mar 24, 2021

@ZhangJinRongBlog you can check if the height of customView's parent view equal to zero

@cj1024
Copy link

cj1024 commented Aug 26, 2021

You should provide a height constraints on your customView, otherwise your customView and the superView will have a zero height, and that's the reason your customView can't receive any touch event

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

No branches or pull requests

3 participants