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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章