UISplitController:如何将详细子视图放置在根视图前面?
我正在编写一个 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过像这样调用 -bringSubviewToFront: ?
[myRootView BringSubviewToFront:myBarView];
Have you tried calling -bringSubviewToFront: like so?
[myRootView bringSubviewToFront:myBarView];