Created
October 31, 2011 23:19
-
-
Save jameswragg/1329382 to your computer and use it in GitHub Desktop.
selectRow fails in long TableViews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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