tags:

views:

123

answers:

1

I'm trying to get started with Three20 and just want to get a basic menu navigation system going. I'm looking for a way to create menu that's just a list view with static text. Selecting an item should be able to move to another menu or a different view controller.

Looking at the documentation for Three20, I'm a bit confused by the need for data sources and models. How do I just create something simple, without the need to connect to the Internet to get the data to populate a list?

A: 

Three20 provides a sample app that does exactly this. Check out the TTNavigatorDemo code on github.

The key concept to grasp is the +(TTSectionedDataSource *) dataSourceWithObjects: method. It lets you define a list of strings instead of subsclassing TTSectionedDataSource.

Algorithmic