addTargetedDelegate:self 中的 swallowsTouches

转载自:http://blog.csdn.net/davintanger/article/details/6836173

关于 swallowsTouches

[[CC sharedDispatcher] addTargetedDelegate:self priority:kCCMenuTouchPriority swallowsTouches:YES];

如果 swallowsTouches:YES && touch begin return  yes 

        那么他的 move 和 end 就接受,别的类就不再接受了。

 如果 swallowsTouches:NO && touch begin return  yes

        那么他的 move 和 end 就接受,别的类就仍然可以接受。











posted on 2012-08-30 13:05  yang3wei  阅读(190)  评论(0编辑  收藏  举报