UITapGestureRecognizer on UIView and Its Subview Respond Together When Subview Is Tapped

前端 未结 3 993
一生所求
一生所求 2021-01-13 05:15

UITapGestureRecognizer is applied to both UIImageView and its subview (UITextView). However, when I tap on subview, the receiver becom

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-13 06:16

    you should implement the UIGestureRecognizer delegate methods and apply the correct policy to the gesture, when multiple gesture are recognized

提交回复
热议问题