title: iOS - Changing root view controller with animation
body: <p>I'm changing the root view controller by pressing a button which is hooked up to a custom segue to the view controller that I want to change to. The custom segue looks like:</p>
  
  <pre><code>- (void)perform{
      UIViewController *source = (UIViewController *)self.sourceViewController;
      source.view.window.rootViewController = self.destinationViewController;
  }
  </code></pre>
  
  <p>But this just immediately changes the root view controller. I'd like the controller to fade on top of the old controller.</p>