Inferis/ViewDeck — Issue #43: Could it be used in combination with the famous TTNavigator from Three20 ?
Author: CrazyKoala
Created: 2012-02-17 02:46:00+00:00
State: open

Hey.
I'm trying to figure out if this nice component could be used in conjunction with the TTNavigator component of Three20.

I tried to set up root controller of the window to a viewController , in which I actually use the TTNavigator.

self.leftMenuController = [[LeftMenuController alloc] initWithNibName:@"LeftMenuController" bundle:nil];
self.rightMenuController = [[RightMenuController alloc] initWithNibName:@"RightMenuController" bundle:nil];
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];

self.deckController = [[IIViewDeckController alloc] initWithCenterViewController:self.viewController leftViewController:self.leftMenuController rightViewController:self.rightMenuController];

self.window.rootViewController = self.deckController;

/**** and in the ViewController.m *******/

navigator = [TTNavigator navigator];
navigator.window = [[UIApplication sharedApplication] delegate].window;

map = navigator.URLMap;

[map from:@"tt://view2" toViewController:[TestView2 class]];

=>>The new controller TestView2 is being pushed but seems to replace the deckController since I can't use my left and right menus anymore. I am trying to find a way to combine both components so that the side menus are reachable anytime.