关于swallowsTouches
[[CC sharedDispatcher] addTargetedDelegate:self priority:kCCMenuTouchPriority swallowsTouches:YES];
如果 swallowsTouches:YES && touch begin return yes
那么他的move 和end就接受,,别的类就不再接受了。
如果swallowsTouches:NO &&begin return yes
那么他的move 和end就接受,别的类就仍然可以接受。
swallowsTouches属性解析
本文详细解释了在特定场景下如何使用swallowsTouches属性来控制触摸事件的接收范围,包括YES和NO两种情况下的具体行为。
9192

被折叠的 条评论
为什么被折叠?



