Select dynamically generated element by id in Titanium Appcelerator
问题 I am working with the latest Tianium Appcelerator and my project is using Alloy. I have a TableView with the id: tblResults In my controller, I populate this table view with rows like this: // Dummy data var results = []; results.push({ title: 'Hello World', value: '123456' }); results.push({ title: 'Bye World', value: '654321' }); // Build result data var resultData = []; for (var i = 0; i < results.length; i++) { resultData.push(createResultRow( results[i].title, results[i].value )); } //