title: How to change RootViewController in AppDelegate From Other ViewController?
body: <p>This is didFinishLaunchingWithOptions Method in AppDelegate.
  Let me explain scenario, I have developed sideMenu like facebook in my app, but now I have to change the sideMenu list according to screens (ViewController)</p>
  
  <p>Here the side Menu is SideMenuViewController, which is an argument in contain, which ultimately becomes window's rootViewController.</p>
  
  <p>SO, The very basic question arises is "How to change the controller or variable which becomes rootViewController of windows"</p>
  
  <pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
  
  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  
  SideMenuViewController *leftMenuViewController = [[SideMenuViewController alloc] init];
  
  self.container = [ContainerOfSideMenuByVeerViewController
                    containerWithCenterViewController:[self navigationController]
                    leftMenuViewController:leftMenuViewController];
  
  self.window.rootViewController = self.container;
  
  [self.window makeKeyAndVisible];
  
  return YES;
  
  }
  </code></pre>
  
  <p>If any programmer wants to know more code or requirement, I do welcome to provide by editing my code or in comments. </p>