I am new to Titanium mobile but i cant find out when I should use createTableViewRow or createTableView. Both have the "data" propriety, so, in teory i can achieve the same results creating a tableview. There is some guideline about this? When I should use one and when I should use the other?
Thanks in advance
You have two choices when creating at table; to create an array of objects with simple tableViewRow attributes and pass it directly to createTableView, as shown in the KitchenSink's table_view_basic.js and table_view_layout.js scripts, or to create an array of tableViewRow objects, which may contain complex layouts including views such as labels, buttons and pickers etc, and pass this to createTableView, as shown in table_view_layout_2.js.
Really, createTableView just creates a tableViewRow for every item in its data array, but does not allow you to add child views to each of those tableViewRows.
I hope this explanation is clear. Let me know if not.