From: http://blog.csdn.net/wcjwdq/article/details/38901607
Whether to swallow the touch point requires control of two places:
1) ccdirector: shareddirector ()-> gettouchdispatcher ()-> addtargeteddelegate (this, kccmenuhandlerpriority-99, true );
When the third parameter in the preceding statement is false, the layer will not swallow the touch point and will not be affected by the following 2;
When the third parameter in the preceding statement is true, whether the layer will swallow the touch point depends on the return value in cctouchbegan in 2;
2) cctouchbegan () {return true ;};
When the third parameter in 1) is false (as described above );
When the third parameter in 1) is true and the return value of cctouchbegan is true, the layer will swallow the contact;
When the third parameter in 1) is true and the return value of cctouchbegan is false, the layer will not swallow the contact;
Whether to swallow the touch point requires control of two places