I’m using a SplitViewController which can’t be part of a navigation controller. I’m using SetRootViewController on an IBAction, which is fine, but it’s not animated. Ideally I’d like to use the same animation as the Navigation Controller does (slide in from the left/right) but if that’s not possible I’d like to use a consistent animation when ever I need to do this.
I’m using a SplitViewController which can’t be part of a navigation controller. I’m using
Share
I’m not sure about this, but I would suggest the following.
Set the
UISplitViewControlleras yourUIWindow‘srootViewController. In theviewDidLoad, you make apresentModalViewController:animated:call with the button’sUIViewControlleras modal. Make sure you don’t animate it. This gives you the illusion that the modal view is the first you see when the app launches.When you push the button, you animate the button’s
UIViewControllerout withdismissModalViewControllerAnimated:. Now you can choose how to animate. One of your choices is cross disolve.