Subview Gesture Recognizer not being called

后端 未结 1 887
無奈伤痛
無奈伤痛 2021-01-06 07:32

I am having a problem getting the UITapGestureRecognizer in my custom UIView.to work properly. I Have created a view: CategoryViewButton which adds a UITapGestureRecognizer

相关标签:
1条回答
  • 2021-01-06 07:53

    For anyone curious, the issue was that the subview with gesture recognizer was outside the frame of the superview. This means even though the view was being drawn, the gestures were not detected

    0 讨论(0)
提交回复
热议问题