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.
我正在开发一个使用自定义 GL 视图(由另一个团队编写,因此我们无法更改他们的代码)的 iPad 应用程序,我需要处理滑动手势。但是,我似乎通过安装我的滑动处理程序在 GL 视图中引入了迟缓。有没有办法告诉该视图首先处理手势?
试试requireGestureRecognizerToFail:otherGestureRecognizer方法。遍历您的 GL 视图和设置的手势识别器["GLViewRecognizer" requireGestureRecognizerToFail:"yourRecognizer"]
requireGestureRecognizerToFail:otherGestureRecognizer
["GLViewRecognizer" requireGestureRecognizerToFail:"yourRecognizer"]
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/Reference/Reference.html#//apple_ref/occ/instm/UIGestureRecognizer/requireGestureRecognizerToFail: