Skip to content

Instantly share code, notes, and snippets.

@jameswragg
Created October 31, 2011 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameswragg/1329382 to your computer and use it in GitHub Desktop.
Save jameswragg/1329382 to your computer and use it in GitHub Desktop.
selectRow fails in long TableViews
// create table view data object
var data = [
{title:'Row 1'},
{title:'Row 2'},
{title:'Row 3'},
{title:'Row 4'},
{title:'Row 5'},
{title:'Row 6'},
{title:'Row 7'},
{title:'Row 8'},
{title:'Row 9'},
{title:'Row 10'},
{title:'Row 11'},
{title:'Row 12'}
];
// create table view
var tableview = Titanium.UI.createTableView({
data:data,
allowsSelection:true
});
tableview.selectRow(1);
// add table view to the window
var win = Ti.UI.createWindow();
win.add(tableview);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment