another critical bug about row.!
Can’t delete row correctly!
I alter it from Sample ListView1
change default size from 20 to 5
local function onRowTouch( event ) local phase = event.phase -- local row = event.target local row = event.row if "press" == phase then print( "Pressed row: " .. row.index ) elseif "release" == phase then -- Update the item selected text itemSelected.text = "You selected item " .. row.index --Transition out the list, transition in the item selected text and the back button -- transition.to( list, { x = - list.contentWidth, time = 400, transition = easing.outExpo } ) -- transition.to( itemSelected, { x = display.contentCenterX, time = 400, transition = easing.outExpo } ) -- transition.to( backButton, { alpha = 1, time = 400, transition = easing.outQuad } ) print("event.row.index",event.row.index) print("event.target.index",event.target.index) print( "Tapped and/or Released row: " .. row.index ) list:deleteRow(event.target.index) end end