title: Change RootViewcontroller with the Push Transition effect
body: <p>in my iOS App i need to change the rootviewController of the window in between of app .so when i change my rootviewcontroller dyncamically its flicking the view before its change.but what i want is to give a smooth transition when rootviewcontroller is changed.</p>
  
  <p>i had tried with the following but its not the transition i want.</p>
  
  <pre><code>[UIView transitionWithView:self.window
                        duration:.8
                         options:UIViewAnimationOptionTransitionCurlUp
                      animations:^{
  
                          self.window.rootViewController = tabBarControllerMain;
      [self.window makeKeyAndVisible];
                      }
                      completion:NULL];
  </code></pre>
  
  <p>i want specific transition like navigationcontroller pushview transition.</p>
  
  <p>can any body give me idea how to achieve that?</p>