有没有方法在cocos2D中完全禁止触屏动作?
比如在下载文件时用户不能进行任何按钮操作。
谢谢
忽略所有用户交互:
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
恢复:
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
手动删除对菜单和图层的触摸
//Cocos2d 2.0
menu.touchEnabled = NO;
layer.touchEnabled = NO;
//Cocos2d 1.0
menu.isTouchEnabled = NO;
加一个优先级最高的layer。吞掉所有的touch事件
或者改touchman ager