Capture.JPG 28.65KB 0 downloads
I am trying to implement a list of things shown using tableview with a plus button at the bottom to add a new item. Something every app has these days. But my touch events for my plus button keep getting overwritten by tableView events. I get the first began for the button but nothing else. I am looking for the release before I move to the add item page. My button touch listener tries to setfocus but that doesn't seem to help. I put the following in my touch listener.
if event.id then display.getCurrentStage():setFocus(event.target, event.id) end t.isFocus = true
That doesn't seem to do it. Since I get the first began for the button I guess I could disable the tableView somehow but that would involve my button class knowing something about what else is on the screen. If I can avoid that it would make the code much cleaner.
Also, I have a gameGroup and a FrontGroup in my sceneGroup. the button is in the FrontGroup while the tableView should be behind it in the GameGroup. But that doesn't seem to help either.