开发者

Check for valid row in tableView Titanium Appcelerator

I have a table view that I am going to populate with data from a con开发者_运维百科tacts picker I then need to get that data back from it when another button is clicked with a while() loop however I can not find anything to give me a truth value for a valid row with db I can use isValidRow() is there something I can use for a tableView?


you can do something like this

'

var data = [{title:"Row 1",isvalidRow:"true"}]; var table = Titanium.UI.createTableView({data:data}); win.add(table); '

you can then get the data which is an array and iterate over the array to see if it's a valid row or no. The valid row will be set when you are reading the data from the contacts DB.

Hope this helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜