Hi,
I have the same issue.
I use the property “listener” to get row touch event and I’m getting the same error if I touch the row more than twice.
Table filling:
tableView:deleteAllRows()
tableView.items = resp.items
for i=1, #resp.items do
tableView:insertRow({
id = i,
height=45,
rowColor= {0xf7,0xf7,0xf7},
lineColor={0xae, 0xae, 0xae},
onRender = function(event)
local item = tableView.items[event.target.id]
local label = display.newText(item.question, 10\*2, 12, "HelveticaNeue", 20)
label:setTextColor(0)
label:setReferencePoint(display.TopCenterReferencePoint)
label.x = display.contentWidth/2
event.view:insert(label)
end,
listener = function(event)
local item = tableView.items[event.target.id]
lC:goReglageAideReponse(item.question, item.answer)
end,
})
end
The error :
?:0: attempt to index field 'view' (a nil value)
message
stack traceback:
[C]: ?
?: in function '?'
?: in function 'listener'
?: in function <?:247>
?: in function <?:218>
The debug mode is enabled cause if error occur into my code, I get file name and line number where the error is located. Which is not the case here.
I use the buils 2013.1031
Thanks
David [import]uid: 223645 topic_id: 33902 reply_id: 145055[/import]