Good Day,
I was wondering on how can I takeFocus from my Button to my TableView?
my code works fine with scroll View, I was wondering how can I do it in TableView, apparently my code does not work for table View, here it is: this is the listener for my button:
local buttonHandler(event) local phase = event.phase local self = event.target if phase == "began" then display.getCurrentStage():setFocus( event.target ) dx = event.xStart dy = event.yStart elseif phase == "moved" then local dy = math.abs( ( event.y - event.yStart ) ) local dx = math.abs( ( event.x - event.xStart ) ) if ( dy \> 10 ) then myTableView:takeFocus( event ) end end end
Thank you in advance
