Are "swipe" and "fling" the same in iOS

320 views Asked by At

I am very new to iOS, in Android developing, I understand the fling gesture, but I cannot find the fling in iOS but find swipe gesture, if I want to implement fling up and down, I need to add two UiSwipeGestureRecognizers and set the direction as down and up, am I right? My second question is how to execute swipe gesture in iOS simulator, I always trigger pan gesture not swipe one.

1

There are 1 answers

0
wangshaoping On

I will answer my own question, question1, yes, I should add two recognizers. The second is how to requireGestureRecognizerToFail to tell the detector that when A action fails trigger Action B.