How do I chain two UIGestureRecognizers together?

前端 未结 1 1617
傲寒
傲寒 2021-02-15 09:52

What I would like to do is to detect a swipe gesture followed by a pan gesture as part of the same touch sequence. So the user first swipes an object to carry out an action, th

1条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-15 10:27

    You can do this by setting both the swipe and the pan to recognize simultaneously, and subclassing the pan so that it does actually mark itself as recognized until the swipe has been recognized.

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