如何制作操作栏和弹出窗口

发布于 2025-01-01 17:18:39 字数 444 浏览 3 评论 0 原文

我想做一些类似于这里图像的事情:

有效 XHTML
(来源:mattgemmell.com

我想要像这样的操作栏和弹出窗口。是否已经存在组件或者这是使用普通视图完成的?我试图用谷歌搜索这个,但我找不到任何有用的东西,一些链接和建议会很有用。

I want to do something similar to image right here:

Valid XHTML
(source: mattgemmell.com)

I want to have action bar and popups like this. Are there already existing components or is this accomplished using plain views? I tried to google this, but i cant find anything useful, some links and advices would be useful.

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

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

发布评论

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

评论(1

水波映月 2025-01-08 17:18:39

顶部的栏可能是具有自定义色调的 UIToolbar。将多个带有图标或标签的 UIBarButtonItem 添加到 UIToolbar 非常容易 - 您可以通过拖放在 Interface Builder 中完成这一切。

下拉窗口称为 Popover。如果您查找 UIPopoverView 的文档,您将了解如何创建它们。所有艰苦的工作都已为您完成 - 您只需指定绘制内容的视图控制器以及您希望其在屏幕上显示的位置。

The bar along the top is probably a UIToolbar with a custom tint color. It's easy to add multiple UIBarButtonItems with icons or labels to a UIToolbar - you can do it all in Interface Builder with drag and drop.

The dropdown window is called a Popover. If you look up the documentation for UIPopoverView you'll see how to create them. All the hard work is done for you - you just specify the view controller that draws the contents, and where onscreen you want it to appear from.

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