开发者

Titanium row data selection on iPhone

开发者 https://www.devze.com 2023-02-26 13:25 出处:网络
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百科e

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

精彩评论

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