quick-2.2.5-plus 版本,找了好久没解决。
local function onTouch(events)
if events.name == "began" then
return true
elseif events.name == "moved" then
elseif events.name == "cancelled" then
elseif events.name == "ended" then
end
end
local touchLayer = display.newLayer()
self:addChild(touchLayer)
touchLayer:addNodeEventListener(cc.NODE_TOUCH_EVENT, onTouch)
touchLayer:setTouchEnabled(true)
touchLayer:setTouchMode(cc.TOUCH_MODE_ONE_BY_ONE)
touchLayer:setTouchSwallowEnabled(false)
```
在Scroll View的上一层加一个Layer响应touch事件:2:
— Begin quote from ____
引用第1楼昨日星辰于2014-12-17 17:57发表的 :
local function onTouch(events)
if events.name == "began" then
....... http://www.cocoachina.com/bbs/job.php?action=topost&tid=277255&pid=1200893

我试了一下,发现只触发 began,其他的没触发
*--- End quote*