Jefferson Jefferson - 1 year ago 153
iOS Question

RootViewController Switch Transition Animation

Is there any way to have a Transition/animation effect while replacing an existing viewcontroller as rootviewcontroller with a new one in the appDelegate?

Answer Source

Sure. Just wrap the switching of the rootViewController in a transition block:

[UIView transitionWithView:self.window
                animations:^{ self.window.rootViewController = newViewController; }
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download