开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜