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.
我正在用 cocos2d 制作游戏,在某些情况下需要忽略触摸事件,尤其是。当另一个触摸“正在进行”时。也就是说,玩家触摸屏幕,四处移动手指,然后结束触摸。在此期间,我需要忽略可能发生的所有其他触摸。我怎样才能做到这一点?
self.userInteractionEnabled = YES;