Skip to content

Instantly share code, notes, and snippets.

@davidhemphill
Created August 24, 2009 21:06
Show Gist options
  • Save davidhemphill/174185 to your computer and use it in GitHub Desktop.
Save davidhemphill/174185 to your computer and use it in GitHub Desktop.
var optionData = [
{title:'Family Tree', "hasChild": "true"},
{title:'Faith-based Initiatives', "hasChild": "true"},
{title:'Why Am I?', "hasChild": "true"}
];
var optionSection = Titanium.UI.iPhone.createGroupedSection({header:'Message Series', type:'option', data:optionData});
// create the grouped view
var groupedView = Titanium.UI.iPhone.createGroupedView();
groupedView.addSection(optionSection);
// add view to the window
Titanium.UI.currentWindow.addView(groupedView);
// show view
Titanium.UI.currentWindow.showView(groupedView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment