Question

Is there any way that i can Push a SplitViewController in my app? I have a regular view and when the user clicks a button, i would like to push a SplitViewController. Simple as that, I can find anything to help on Google.

Était-ce utile?

La solution

There is no way to push SplitViewController. If you want to use it according to apple it needs to be the root view of your application.

There is a workaround for that though (not %100 gauranteed to be accepted by apple). You need to change the Root of your main Window in AppDelegate manually and animate it yourself.

Edit:

I found some code for changing the rootViewController of the window:

AppDelegate delegate = [[UIApllication sharedApplication] delegate];
[[delegate window] rootViewController] = yourSplitViewController;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top