How should I setup this “drawer” view app?

I am using a framework MMDrawerController which has been awesome. I am just trying to structure my code well. I have just the left side nav. And I have it setup like this right now:

UIViewController *leftSideDrawerViewController = [[MenuNavigationViewController alloc] initWithStyle:UITableViewStylePlain];

// ****************************** just my initial login viewcontroller
UIViewController *centerViewController = [[***LoginViewController*** alloc] init];// The Question I have is right here
// ******************************

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:centerViewController];

self.drawerController = [[MMDrawerController alloc]
self.window setRootViewController:self.drawerController];

Should basically I just make my left view controller my MenuViewController which will never be changed. And then I make my center view controller my LoginViewController and this view will obviously need to be changed eventually. I have about 5 view controllers available to be selected in the left nav, then from those viewcontrollers accessed from the left nav, I will push viewcontrollers. How can I set this up? It seems to me like I would need multiple navigation controllers. One for each viewcontroller available in the left side nav.

How can I setup multiple navigation controllers and how can I transition between those navigation controllers on the center view?

Thanks for the help, just trying to setup this app well!!!


i think your requirement is something like this take a look at the below demo code that i've created hope it helps you :)

Need Your Help

Prevent Visual Studio 2013 to exit editing class tag when pressing SPACE

css visual-studio razor intellisense visual-studio-2013

The feature I like in VS2013 is the CSS Class IntelliSense in CSHTML files, however, their new feature to exit the tag when pressing SPACE is quite annoying.

How to avoid browser caching issues by renaming css file caching web

If i have some bad css in site.css file and this has been cached from the user's browser, is it then possible to simply rename the file with the fixed css in order to have the user's browser reload...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.