iOS Dev (72) ccTouchBegan 返回值 BOOL 的含义

iOS Dev (72) ccTouchBegan 返回值 BOOL 的含义

  • 博客:http://blog.csdn.net/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.

-

转载请注明来自:http://blog.csdn.net/prevention

你可能感兴趣的:(iOS Dev (72) ccTouchBegan 返回值 BOOL 的含义)