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.
我正在使用 cocos 2d,我想跟踪多个独立的平移手势。但我不知道如何通过使用 onTouchBegin 或 UIPanGesture 类来做到这一点。如果你能帮助我,我将不胜感激。
我在屏幕上有多个精灵。我希望用户能够独立并同时拖动它们。
在两个识别器的手势委托中,实现以下协议方法:
-(BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer*)otherGestureRecognizer { return YES; }