如何制作操作栏和弹出窗口
我想做一些类似于这里图像的事情:
(来源:mattgemmell.com)
我想要像这样的操作栏和弹出窗口。是否已经存在组件或者这是使用普通视图完成的?我试图用谷歌搜索这个,但我找不到任何有用的东西,一些链接和建议会很有用。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我想做一些类似于这里图像的事情:
(来源:mattgemmell.com)
我想要像这样的操作栏和弹出窗口。是否已经存在组件或者这是使用普通视图完成的?我试图用谷歌搜索这个,但我找不到任何有用的东西,一些链接和建议会很有用。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
顶部的栏可能是具有自定义色调的 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.