Created
January 7, 2011 19:17
-
-
Save edwardinubuntu/769954 to your computer and use it in GitHub Desktop.
TTNavigator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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