I have a similar problem on all tableviews in my application. It is now effectively useless since upgrading…
As an example I run this code:
– example taken from Blog post: “Creating Lists with the TableView Widget”
local widget = require “widget”
– create the tableView widget
local list = widget.newTableView{
width = 320,
height = 366
}
– function below handles row rendering
local function onRowRender( event )
print(“render”)
local group = event.view
local row = event.target
local text = display.newText( “My first TableView row!”, 0, 0, native.systemFont, 18 )
text:setReferencePoint( display.CenterLeftReferencePoint )
text.x = 25
text.y = row.height * 0.5
– you must insert any display objects into event.view group
group:insert( text )
end
local function onRowTouch(event)
print(“touch”)
end
– insert the row
print(“inserting row !!!”)
list:insertRow{
id = “unique-row-id”,
onRender = onRowRender,
onEvent = onRowTouch
}
The print statements in the touch and render functions don’t even register in the simulator console, meaning the functions aren’t called.
Also note that the “onRender” and “onEvent” parms have been removed from the object:insertRow() API documentation (http://docs.coronalabs.com/api/type/TableViewWidget/insertRow.html)
Is there any way to uninstall the latest version??? I’m dead right now…