在 UISplitView 中拥有 UINavigation

发布于 2024-09-13 23:15:42 字数 745 浏览 3 评论 0原文

所以我正在查看这个应用程序 http://itunes .apple.com/us/app/pageonce-personal-finance/id285056092?mt=8(参见 iPad 屏幕截图),看起来他们在 UISplitView 的详细信息视图中有一个 uinavigation 控制器。当我尝试在详细信息视图中创建 UINavigation 控制器时,导航栏与 UISplitView 顶部栏重叠。例如,在 pageonce 应用程序上,我的蓝色导航栏将与顶部的银色导航栏重叠。

那个蓝色条是导航控制器还是其他东西?如果是这样,他们如何将导航栏向下移动,同时仍然可以访问顶部栏?我们可以控制导航栏/视图的位置吗?

有效 XHTML
(来源:apple.com)

So I was looking at this app http://itunes.apple.com/us/app/pageonce-personal-finance/id285056092?mt=8 (see iPad screenshots) and it appears that they have a uinavigation controller within the Details view of the UISplitView. When I tried to make a UINavigation controller in my Details View, the navigation bar overlaps with the UISplitView top bar. For example, on the pageonce app, my blue navigation bar would overlap with the top, silver bar.

Is that blue bar a navigation controller, or something else? If so, how did they move the navigation bar down while still having access to the top bar? Can we control the position of the navigation bar/view?

Valid XHTML
(source: apple.com)
.

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

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

发布评论

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

评论(1

你在看孤独的风景 2024-09-20 23:15:43

看起来他们在主视图和详细视图上的 UINavigationController 内都有一个嵌套的 UINavigationController。每个 UINavigationController 都会创建一个栏。不存在“UISplitView 顶部栏”之类的东西。如果您首先将 UINavigationController 放入 UISplitViewController 中,则只会获得顶部栏。因此,您需要做的就是将另一个 UINavigationController 放入 UINavigationController 中,您将得到另一个栏。

It looks like they have a nested UINavigationController inside a UINavigationController on both the master and detail views. Each UINavigationController creates a bar. There is no such thing as a "UISplitView top bar". You only get a top bar if you put a UINavigationController inside the UISplitViewController in the first place. So all you need to do is to put another UINavigationController inside the UINavigationController and you will get another bar.

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