Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created January 7, 2011 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/769954 to your computer and use it in GitHub Desktop.
Save edwardinubuntu/769954 to your computer and use it in GitHub Desktop.
TTNavigator
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Add navigator
TTNavigator* navigator = [TTNavigator navigator];
navigator.persistenceMode = TTNavigatorPersistenceModeNone;
TTURLMap* map = navigator.URLMap;
// Adding URL Map
[map from:@"*" toViewController:[TTWebController class]];
[map from:kAppRootURLPath toViewController:
[RSSFeedViewController class]];
[map from:kAppDescriptionURLPath toViewController:
[RSSDescriptionViewController class]];
[map from:kAppDescriptionPath toViewController:
[RSSDescriptionViewController class]];
// Do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment