views:

1879

answers:

1

Whenever I try to present a UISplitViewController modally the application crashes. Thus it must allways be the root view controller. Can anyone confirm that?

+3  A: 

From the Apple iPad Programming Guide:

The split view controller’s view should always be installed as the root view of your application window. You should never present a split view inside of a navigation or tab bar interface.

So yes, you cannot present a split view outside of your main application window (that includes modally).

macatomy
have you tried it? It says "should" not "must". And presenting a splitview modally in fullscreen mode is whether inside of a navigation nor a tab bar interface. That doesn't indicate that it wouldn't be possible in general.
I haven't tried this myself, but given the fact that Apple recommends not doing it, and that you're experiencing issues with it, it would probably be a better idea to rethink your design. If you want a split view type setup, it would be simple to create your own "split view" setup (rather than UISplitViewController) in Interface Builder and present that modally.
macatomy
good idea. thanks!
If you try to present a split view modally, you'll get an uncaught exception: "Application tried to present a Split View Controllers modally" [sic]
Kristopher Johnson