local function onRowTouch( event )
local phase = event.phase
local row = event.target
if “swipeLeft” == phase then
print( "swipeLeft event on row with index: ", row.index )
tableView:deleteRow( row.index )
end
end
for example there are 3 rows in tableview, when swipingleft second row:
i think it attempts 2 swipeleft…
began began nil moved nil moved swipeLeft event on row with index: 2 moved swipeLeft event on row with index: nil Runtime error ?:0: attempt to concatenate a nil value stack traceback: [C]: ? ?: in function \<?:1071\> (tail call): ? ...ibrary/Application Support/Outlaw/Sandbox/3/tab3.lua:171: in function '\_onRowTouch' ?: in function \<?:291\> ?: in function \<?:218\> ended swipeLeft event on row with index: nil Runtime error ?:0: attempt to concatenate a nil value stack traceback: [C]: ? ?: in function \<?:1071\> (tail call): ? ...ibrary/Application Support/Outlaw/Sandbox/3/tab3.lua:171: in function '\_onRowTouch' ?: in function \<?:291\> ?: in function \<?:218\> nil