UISplitController:如何将详细子视图放置在根视图前面?

发布于 2024-10-01 11:56:22 字数 147 浏览 1 评论 0原文

我正在编写一个 iPad 应用程序,我需要一个栏来跨越屏幕的整个底部,位于根控制器视图和详细控制器视图的前面。该栏是详细控制器视图的子视图,并且我关闭了“剪辑子视图”,以便它向外延伸到详细控制器视图边界的左侧。但是,它最终位于根视图控制器视图的后面。我怎样才能把它放在根视图前面?

I'm writing an iPad application and I need a bar to span the entire bottom of the screen, in front of both the root controller's view and the detail controller's view. The bar is a sub-view of the detail controller's view, and I have "clip sub-views" turned off so that it extends outwards to the left of the detail controller's view's bounds. However, it ends up behind the root view controller's view. How can I bring it in front of the root view?

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

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

发布评论

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

评论(1

简单气质女生网名 2024-10-08 11:56:22

您是否尝试过像这样调用 -bringSubviewToFront: ?

[myRootView BringSubviewToFront:myBarView];

Have you tried calling -bringSubviewToFront: like so?

[myRootView bringSubviewToFront:myBarView];

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