开发者

Nesting UISplitViewController within UINavigationController

开发者 https://www.devze.com 2022-12-28 20:25 出处:网络
I would like to have a root level controller that appears to be a splitview but I would also like to allow the detail view to essentially take over the entire screen (in both landscape and portrait or

I would like to have a root level controller that appears to be a splitview but I would also like to allow the detail view to essentially take over the entire screen (in both landscape and portrait orientation) - and not as a modal view.

By way of context, my iPad app shows the user a list of experiments (collections of data sampled from sensors) in the master view. Selecting an experiment causes details of experiment (e.g., title, sample rate, etc.) to be displayed in detail view. But I would also like to be able to tap on a button in the detail view and transition to a full-screen graph of, for example, data vs. time.

So, I am wondering if anyone has done this. I already have tried it 开发者_运维问答the other way (uinavigationcontroller within detail view of splitviewcontroller) but that doesn't seem to allow for the full-screen aspect.

Thanks in advance.


I think that a modal view overlay with a full page style would give you what you want.

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消