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:
- (void)perform{
UIViewController *source = (UIViewController *)self.sourceViewController;
source.view.window.rootViewController = self.destinationViewController;
}
But this just immediately changes the root view controller. I'd like the controller to fade on top of the old controller.