I’m willing to pay for help, When I loop through a table, everything looks good in the Simulator but when I upload to a device the it wont work, please help me.
local data = loadsave.loadTable("numbers.json").available\_phone\_numbers local function onRowRender( event ) -- Get reference to the row group local row = event.row local params = event.row.params -- Cache the row "contentWidth" and "contentHeight" because the row bounds can change as children objects are added local rowHeight = row.contentHeight local rowWidth = row.contentWidth local rowTitle = display.newText( row, params.friendly\_name, 0, 0, nil, 14 ) rowTitle:setFillColor( 0 ) -- Align the label left and vertically centered rowTitle.anchorX = 0 rowTitle.x = 10 rowTitle.y = rowHeight \* 0.5 end local myList = widget.newTableView { top = 50, width = display.contentWidth, height = display.contentHeight, onRowRender = onRowRender } for i = 1, #data do myList:insertRow{ isCategory = false, params = { friendly\_name = data[i].friendly\_name } } end