简体   繁体   English

iOS中的“滑动”和“移动”是否相同

[英]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? 我是iOS的新手,在Android开发中我了解弹跳手势,但是我无法在iOS中找到弹跳手势,但找到了滑动手势,如果要实现上下弹跳,我需要添加两个UiSwipeGestureRecognizers并设置方向作为上下,我是对的吗? My second question is how to execute swipe gesture in iOS simulator, I always trigger pan gesture not swipe one. 我的第二个问题是如何在iOS模拟器中执行滑动手势,我总是触发平移手势而不是滑动一个手势。

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. 第二个是如何要求requireGestureRecognizerToFail告诉检测器,当A操作失败时触发requireGestureRecognizerToFail

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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