Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在执行另一个手势期间触发一个手势?假设我有手势 A,它是平移手势,B 是长按手势。B 可以在平底锅时手指留在屏幕上开火吗?谢谢
绝对地!Apple 甚至为您提供了控制这种行为的委托方法,最值得注意的是:
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizershouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer