DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

About the custom view cannot respond to the click event

Open ZhangJinRongBlog opened this issue 3 years ago • 2 comments

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

ZhangJinRongBlog avatar Mar 05 '21 09:03 ZhangJinRongBlog

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

HideOnBushTuT avatar Mar 24 '21 09:03 HideOnBushTuT

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

cj1024 avatar Aug 26 '21 09:08 cj1024