SplitviewController 作为 NavigationController 的子页面

发布于 2024-10-09 17:40:17 字数 89 浏览 0 评论 0原文

我试图在 UINavigationController 层次结构中添加 splitview 作为子页面。我猜这是可能的,但不确定。否则,我只需要手动执行类似的功能。

I am trying to have add a splitview as a subpage in UINavigationController hierarchy. I am guess this is possible, but not sure. Otherwise, I will just have to do similar functionality manually.

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

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

发布评论

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

评论(1

娇女薄笑 2024-10-16 17:40:17

你不能这样做,UISplitViewController 必须是你的应用程序的根控制器。

来自苹果:

分割视图控制器必须始终是
您创建的任何接口的根。
换句话说,你必须始终
安装视图
aUISplitViewController 对象作为
您的应用程序的根视图
窗户。分割视图的窗格
界面可能包含导航
控制器、标签栏控制器或
您的任何其他类型的视图控制器
需要实现您的接口。

http ://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html#//apple_ref/doc/uid/TP40007457-CH6-SW2

You cannot do that, a UISplitViewController must be the root controller of your app.

From Apple:

A split view controller must always be
the root of any interface you create.
In other words, you must always
install the view from
aUISplitViewController object as the
root view of your application’s
window. The panes of your split-view
interface may then contain navigation
controllers, tab bar controllers, or
any other type of view controller you
need to implement your interface.

http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html#//apple_ref/doc/uid/TP40007457-CH6-SW2

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