Titanium row data selection on iPhone
I have a text written in Titanium.UI.TableViewRow. Is it possible to to copy the row text on selecting the row as we do in Textfiled or textArea. I inserted a text field in row, but it s开发者_JS百科elects the text only if i focus on the written text not on any part of row.
yes..
if you need to get the title of the row:
rowTitle = yourTableView.data[indexOfSection, no Section=0].rows[indexOfRow].title;
if you need to get the text of the label/textfield/..
text = yourTableView.data[indexOfSection].rows[indexOfRow].children[indexOfChild].text
精彩评论