I'm trying to swap out the rootViewController in my appDelegate with an animation and it is just flashing to the new viewController without any animation.
-(void)showRootController:(UIViewController *)controller {
[UIView transitionWithView:self.window duration:0.5 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
self.window.rootViewController = controller;
[self.window makeKeyAndVisible];
}
completion:nil];
}
How can I do this with an animation? (Testing on an iPhone 5s with iOS 8)