How can I send a UILongPressGesture programmatically?

前端 未结 2 1508
抹茶落季
抹茶落季 2020-12-10 08:05

How can I send a UILongPressGesture message to an object?

I know how to send touches, but not gestures. For example, if I wanted to send a touch I could

2条回答
  •  抹茶落季
    2020-12-10 08:49

    Do you know what selector the object has tied to its UILongPressGestureRecognizer? If you knew that, you could just call it. If you're asking if there's a method like touchesMoved:(UITouch *)touch, then the answer's no.

提交回复
热议问题