UIGestureRecognizer receive touch but forward it to UIControl as well

前端 未结 1 669
执笔经年
执笔经年 2021-02-02 07:30

How would you allow a UIGestureRecognizer of a UIView to receive a touch event but also make sure that another, underlaying/overlaying UIView

相关标签:
1条回答
  • 2021-02-02 07:47

    Have you tried with this?

    cancelsTouchesInView A Boolean value affecting whether touches are delivered to a view when a gesture is recognized.

    @property(nonatomic) BOOL cancelsTouchesInView
    
    0 讨论(0)
提交回复
热议问题