uinavigationcontroller - Multi-level navigation controller on left-hand side of UISplitView with a small twist -


I'm trying to similar (but not all) email < The app found on the Strong> iPad .

Specifically, I would like to create a tab-based app , but with each tab user with different UISplitView presents.

Each UISplitView has a master and an expansion scene (clearly).

In each of the UISplitView me the master would like to be a multi level shipping controller where new UIViewControllers are pushed onto the stack (or off of the shutdown). This type of navigation within the UISplitView The place is where the application is similar to the original email app.

For my best knowledge, only one place which has described a "controller inside a Itibber Controller": And I have tried to follow the accepted answer.

The accepted solution works for me (i.e., I get a tab-bar controller which allows me to switch between different UISplitViews).

The problem is that I do not know how to create a multi-level navigation controller in the left hand of the UISplitview.

Here is a code that I used within my app representative, in which to create the initial "partition view" inside the "tab bar controller" ( It is suggested in the link as long ago).

  - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) Launch Option {NSMutableArray * tabArray = [NSMutableArray arra y]; NSMutableArray * array = [NSMutableArray array]; UISplitViewController * Split ViewController = [[UISplitViewController alloc] init]; MainViewController * viewCont = [[[Main View Controller alloc] initWithNibName: @ "Main View Controller" bundle: zero]; [Array addObject: viewCont]; [ViewCont release]; ViewCont = [[extension viewer alloc] initWithNibName: @ "DetailViewController" bundle: zero]; [Array addObject: viewCont]; [ViewCont release]; [Split Weave Controller Set Wiie Controller: Array]; [TabAre Ad Object: Split Weave Controller]; [Split Weave Controller Release]; Array = [NSMutableArray array]; SplitViewController = [[UISplitViewController alloc] init]; ViewCont = [[Master 2 Everyone] initWithNibName: @ "Master2" bundle: zero]; [Array addObject: viewCont]; [ViewCont release]; ViewCont = [[Slow 2 Elock] initWithNibName: @ "Slave 2" bundle: zero]; [Array addObject: viewCont]; [ViewCont release]; [Split Weave Controller Set Wiie Controller: Array]; [TabAre Ad Object: Split Weave Controller]; [Split Weave Controller Release]; // Add the current view of the tab bar controller as a subview of the window [Tabbar controller set vs controller: tab array]; [Add windowviewview: tabbar controller. View]; [Window-making and knowledgeable]; Yes come back }  

The class has a UIViewController in the following method:

  - (IBAction) push_me: (id) sender {M2 * m2 = [[[M2 Alok] initWithNibName: @ "M2" bundle: Nile] Autoreshoe]; [Self. Navigation controller Push ViewController: Animated M2: Yes]; }  

This method is attached in a UIButton (through the interface builder) found in the ManualController.exe, of course, the above method (push_me) is called the second UIViewController (M2) ) Is considered to be created and pushed when UIButton is pressed so look at the left side of the partition view in the M2.

I'm going to go wrong?

TIA!

Are you sure the main view controller is the subclass of UINavigationController?

After you enable the Push / Pop Controller, you should have the main controller (or subclass) of a navigation controller and after that you will push the controllers (such as TableView controller) to this structure. The default SplitView can be seen in the project (open IB and inspect ideas).

Here is a decent tutorial on UISplitViewController:


Comments