cocos2d disable touches to all other views
来源:互联网 发布:我国网络安全法 编辑:程序博客网 时间:2024/06/05 23:05
just add a invisable layer which swallowtouches.
注:Whenyou register CCTouchDispatcher you have to use lower priority thanyour containing layer if you want to swallow all touches. Latestcocos2d uses kCCMenuHandlerPriority (whichis -128) for menus. So, if you have menu items in parent layer,register CCTouchDispatcher with prioritye.g. kCCMenuHandlerPriority-1and it will swallow all touches
0 0
- cocos2d disable touches to all other views
- EXTENDING COCOS2D CCSPRITE TO HANDLE TOUCHES
- Switching to other views in a doc-view application
- Sort String Array Make All Anagrams Next To each Other
- 挤死collideWith: function(other, axis) { if (other.touches(this)) { other.kill(); } }
- adding iphone touches to unitygui scrollview
- How to copy all view private files and Derived objects between views
- How to copy all view private files and Derived objects between views
- [Cocoa]_[初级]_[Removing All Custom Views or what you want to removed]
- Unity说明文档翻译-Other Views
- cocos2d-x touches事件中使用 addTargetedDelegate 的潜在bug
- How to disable Spotlight
- How to Disable SELinux
- How to disable network?
- how to disable watchdog
- How to disable DRM
- Use "adb disable-verity" to disable verity.
- 45 You want to disable resumable space allocation for all sessions. Which value should be assigned t
- 个人2D CG类书籍短评
- 黑马程序员-----Date类基础化演示(黑马视频)
- cocos2d屏幕部分区域无法响应触摸事件
- Cannot run on the selected destination
- iOS 设备ID 替代方案
- cocos2d disable touches to all other views
- MVC设计思想
- Integrating cocos2d AP…
- NSPredicate -过滤NSMutableArray
- Cocos2d 2.0后CCProgressTimer变化
- Git服务器Gitosis安装设置
- 计算触摸平均速度效果比较好的方式
- scheduleUpdate not work
- COCOS2D屏幕的调试信息