在 UINavigationController 中嵌套 UISplitViewController

发布于 2024-08-30 09:23:23 字数 309 浏览 2 评论 0原文

我想要一个看起来像分割视图的根级控制器,但我也希望允许详细视图基本上占据整个屏幕(横向和纵向) - 而不是作为模态视图。

通过上下文,我的 iPad 应用程序在主视图中向用户显示实验列表(从传感器采样的数据集合)。选择实验会使实验的详细信息(例如标题、采样率等)显示在详细视图中。但我还希望能够点击详细视图中的按钮并转换到全屏图表,例如数据与时间的关系图。

所以,我想知道是否有人这样做过。我已经尝试过其他方式( splitviewcontroller 的详细视图中的 uinavigationcontroller ),但这似乎不允许全屏显示。

提前致谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白昼 2024-09-06 09:23:23

我认为具有全页面样式的模态视图叠加将为您提供您想要的。

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

重叠模态视图控制器的默认样式将占据整个屏幕(它不会是弹出窗口。)

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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文