addTargetedDelegate:self中的swallowsTouches
2012-05-30 22:44
309 查看
关于swallowsTouches [[CC sharedDispatcher] addTargetedDelegate:self priority:kCCMenuTouchPriority swallowsTouches:YES]; 如果 swallowsTouches:YES && touch begin return yes 那么他的move 和end就接受,,别的类就不再接受了。 如果swallowsTouches:NO &&begin return yes 那么他的move 和end就接受,别的类就仍然可以接受。
相关文章推荐
- addTargetedDelegate:self中的swallowsTouches
- addTargetedDelegate:self 中的 swallowsTouches
- addTargetedDelegate:self 中的 swallowsTouches
- addTargetedDelegate:self 中的 swallowsTouches
- addTargetedDelegate:self中的swallowsTouches
- 一篇好文章关于onEnter与addTargetedDelegate
- cocos2dx 不要直接在 onEnter 里面 addTargetedDelegate (或 addStandardDelegate)
- cocos2d-x touches事件中使用 addTargetedDelegate 的潜在bug
- cocos2d 学习笔记 - 【转载】cocos2dx 不要直接在 onEnter 里面 addTargetedDelegate (或 addStandardDelegate)
- cocos2dx 不要直接在 onEnter 里面 addTargetedDelegate (或 addStandardDelegate)
- cocos2d-x touches事件中使用 addTargetedDelegate 的潜在bug
- Cocos2dx的addTargetedDelegate方法的参数
- cocos2d-x-2.*关于addTargetedDelegate的两个坑
- cocos2dx 不用直接在 onEnter 里面 addTargetedDelegate (或 addStandardDelegate)
- Fuck self.delegate = self
- cell 中添加控件self.addSubview()与self.contentView.addSubview()的区别
- CCLayer中Touch事件(Standard Touch Delegate和Targeted Touch Delegate)
- self.delegate = self?
- Cocos2d-x之Touch事件处理机制 提供两种触摸事件处理机制:CCStandardTouchDelegate和CCTargetedTouchDelegate。
- cocos2d ccLayer响应触摸事件方法:CCStandardTouchDelegate 与 CCTargetedTouchDelegate