简体   繁体   中英

Are “swipe” and “fling” the same in iOS

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM