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
2010-04-05 17:38:08
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.
2010-04-05 17:49:50
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
2010-04-05 18:26:45
good idea. thanks!
2010-04-06 07:53:58
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
2010-04-17 16:29:42