Pregunta

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.

¿Fue útil?

Solución

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;
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top