this code reproduce the problem, going all down and after all up go on error
bad argument function insert on function onRowRender
local widget = require( “widget” )
local myTable
local pzObject={}
local function onRowRender( event )
local row = event.row
local id = row.index
row:insert(pzObject[row.index])
return true
end
for i=1,10,1 do
pzObject[i]=display.newImageRect(“img/mask”…i…".png",500,500)
end
myTable = widget.newTableView {
top = 0,
width = display.contentWidth/2.5,
height = display.contentHeight,
onRowRender = onRowRender,
}
for i=1,10,1 do
myTable:insertRow{
rowHeight =90,
isCategory = false,
rowColor = { 0.5, 0.5, 0.5 },
lineColor = { 0.90, 0.90, 0.90 },
}
end