Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Getting the indexes of TableViewRow(s) in a TableView

$
0
0

I'm currently trying to add functionality to my iPhone program where changes are made to a table after it's been created. I've found lots of functions in Titanium.UI.TableView to let me do this, but they require an index parameter. updateRow(), insertRowAfter() and deleteRow() all can be or must be used this way. The only way I've found of obtaining the indexes of specific rows is through the click event.

Is there some way to get the row indexes programmatically? I noticed there's an indexForRow function in the iPhone code for TableView. But its not in the documentation and when I try to use it, I get errors when I try to use it.

Any method for reordering/adding/removing specific rows from a table would be really helpful. Thanks!


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>