SplitViewController primaryViewController has no way of being dismissed

94 views Asked by At

I have a UISplitViewController with default behaviour. When showViewController(..) executes, it presents a new UINavigationController that I have passed. Sometimes this UINavigationController is presented modally (based on TraitCollection).

I have noticed that a UINavigationController (or any VC for that matter) is only presented modally when using a horizontally/vertically compact size class. What is missing however is a method of going back or simply dismissing the UINavigationController. (A back button is only visible if the device goes from compact-regular to regular-compact, in which case the UISplitViewController adds a back button to my presented UINavigationController.)

How do I handle this behavior to be as consistent as possible for dismissing this presented UINavigationController? Should I consider not using a UINavigationController for any particular reason? (and embed a ViewController only in certain cases instead?)

Any help appreciated.

0

There are 0 answers