0
everyone: 我可以访问到TableView中的行内容:这是我的问题,我试图在单击时显示TableView中选定行的内容。如何通过单击行
在我通过这种方式添加的行onRowRender,
local function onRowRender(event)
local row = event.row
local myText = ""
local myText = display.newText(row,"Text to show",150,row.contentHeight/2,native.systemFontBold,30)
end
在我已经试过这个onRowTouch事件,
local function onRowTouchTable(event)
print(menuPedidos._view._rows[row.index]) //it return a table, I assumed the row selected
print(menuPedidos._view._rows[row.index].mytext) //it return nil
end
我所需要的,是保存在对象中的文本mytext的
我会感谢所有帮助,谢谢
好的我明白了,但存在另一种解决方案?想知道。 –
我不知道另一个解决方案。 – ldurniat