iOS Dev (72) ccTouchBegan 返回值 BOOL 的含义
- 博客:http://blog.youkuaiyun.com/prevention
- 作者:大锐哥
- 摘自:
Learn iPhone and iPad cocos2d Game Development
-
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
...
}
If you return YES in that method, it means you don’t want this particular touch to be propagated to other targeted touch handlers with a lower priority. You have effectively “swallowed” this touch.
-

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



