Diego Rodrigues
Diego Rodrigues

Reputation: 73

Push Split View iPad

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.

Upvotes: 0

Views: 81

Answers (1)

P. Sami
P. Sami

Reputation: 2207

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;

Upvotes: 1

Related Questions