Nesting UISplitViewController into UINavigationController

I would like to have a root level controller that looks like a splitview, but I would also like to allow the detail view to essentially take over the entire screen (in both landscape and portrait) rather than a modal view.

In context, my iPad app shows the user a list of experiments (collections of sensor data) in the main view. Selecting an experiment forces the details of the experiment (eg name, sample rate, etc.) to be displayed in a detailed view. But I would also like to be able to click a button in the detail view and go to a full screen graph like time data.

So I am wondering if anyone has done this. I've already tried this in a different way (uinavigationcontroller in splitviewcontroller detail view) but it doesn't seem to be full screen aspect.

Thanks in advance.

+2


a source to share


1 answer


I think overlaying a modal view with a full page style will give you what you want.

YourVc * vc = [[[YourVc alloc] initWithNibName: @ "YourVc" bundle: nil] autorelease];
[self.splitViewController presentModalViewController: vc animated: true];


The default styling for an overlay modal view controller will take up the entire screen (it won't be a popup.)

+1


a source







All Articles