表格视图下方的 UIPopoverController 按钮

发布于 2024-11-14 15:08:56 字数 248 浏览 4 评论 0原文

我正在寻找实现如下图所示的东西,并且真的不知道它是如何完成的,并且想知道是否有人有一个快速的设计想法(不需要代码或任何东西)。它是表视图的页脚视图吗?这是弹出控制器的一些未知的页脚视图吗?是否有某种方法可以将 UINavigationController 中的工具栏集成到弹出窗口中?我想我总是可以创建一个自定义视图并“像”弹出窗口一样显示它。感谢您的任何帮助。 在此处输入图像描述

I was looking to implement something like the image below, and really have no idea how it's done and was wondering if someone had a quick design idea (no code is necessary or anything). Is it a footer view for the table view? is it some unknown footer view for a popover controller? Is it some way to integrate a toolbar from the UINavigationController 'into' the popover? I guess I could always create a custom view and display it 'like' a popover. Thanks for any help.
enter image description here

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

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

发布评论

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

评论(1

末骤雨初歇 2024-11-21 15:08:56

UIPopoverController 实际上会为你做很多事情。如果将其内容视图控制器设置为 UINavigationController,则该导航控制器当前视图控制器的导航项的内容将显示嵌入在弹出窗口的顶部。我相信设置视图控制器(而不是导航控制器)的 toolbarItems 将在底部产生相同的效果。

在本例中,看起来他们编写了一个自定义弹出窗口控制器;它没有附加箭头,并且其顶部的阴影与标准 UIPopoverController 略有不同。但我非常确定您可以使用我刚才描述的方法来实现类似的效果,而无需滚动自己的弹出窗口。

UIPopoverController will actually do a lot of that for you. If you set its content view controller to a UINavigationController, the contents of that navigation controller’s current view controller’s navigation item will display embedded in the top of the popover. I believe setting the view controller’s (not the navigation controller’s) toolbarItems will have the same effect at the bottom.

In this case, it looks like they wrote a custom popover controller; it doesn’t have an arrow attached, and the top of it is shaded a little differently from the standard UIPopoverController. But I’m pretty sure you can use the methods I just described to achieve a similar effect without having to roll your own popover.

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