I am new in using Three20, when i use navigator, the xcode always report error:Application windows are expected to have a root view controller at the end of application launch
here is my code:
TTNavigator *navigator = [TTNavigator navigator];
navigator.persistenceMode = TTNavigatorPersistenceModeAll;
navigator.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
TTURLMap *map = navigator.URLMap;
[map from:@"tt//view" toViewController:[ViewController class]];
[map from:@"tt//test" toSharedViewController:[TestViewController class]];
if (![navigator restoreViewControllers]) {
[navigator openURLAction:[TTURLAction actionWithURLPath:@"tt://view"] ];
}
return YES;
I don't why this happened? Can anyone help me out?