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