触摸事件的setSwallowTouches()方法

1 _touchListener->setSwallowTouches(true);
2 
3 // true不向下触摸,简单点来说,
4 // 比如有两个sprite ,A和 B,A在上B在下(位置重叠),
5 // 触摸A的时候,B不会受到影响,
6 // 反之false,向下传递触摸,触摸A也等于触摸了B
原文地址:https://www.cnblogs.com/dudu580231/p/4572011.html