Hi everybody,
I created a listview and added a onRelease listener to each row:
myList = tableView.newList{
data=data,
default="res/blueBg.png",
backgroundColor={255,2552,255},
onRelease=listButtonRelease,
top=135,
bottom=100,
--data in rows etc.
function listButtonRelease( event )
self = event.target
local id = self.id
print(self.id)
storyboard.gotoScene( "scene2", "slideLeft", 200 )
end
But after I switch to scene2 listeners still respond to touch events.
I tried to use this on exitScene:
myList:removeEventListener( "onRelease", listButtonRelease)
but still doesn’t work. [import]uid: 151914 topic_id: 27168 reply_id: 327168[/import]