尝试模仿 Apple iPad popover 风格

发布于 2024-11-19 09:56:08 字数 285 浏览 9 评论 0原文

如果有人问这个问题,我深表歉意,但我真的找不到。

本质上,我试图模仿内置 Apple 应用程序使用的弹出窗口的外观。特别是,不是使用表视图列表的弹出窗口,而是那些内部只有按钮的弹出窗口。

例如,在邮件应用程序中,单击屏幕右上角的向左箭头,会显示一个带有四个按钮的弹出窗口:回复、回复全部、转发、打印。

这个特定的弹出窗口是如何创建来呈现这种外观的?

我尝试制作自己的具有黑色背景和圆形矩形按钮的 UIViewController,但它看起来不一样。任何帮助将不胜感激!

谢谢。

My sincere apologies if this question has been asked, but I really couldn't find it.

Essentially, I am trying to mimic the look of the popovers used by the built-in Apple applications. In particular, not the popovers that use a tableview list, but rather those popovers that only have buttons inside.

For example, in the Mail app, clicking the left-facing arrow on the top right of the screen, a popover is shown with four buttons: Reply, Reply All, Forward, Print.

How is this particular popup created to give that look?

I have tried making my own UIViewController with a black background and Round Rect Buttons, but it doesn't look the same. Any help would be much appreciated!

Thank you.

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

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

发布评论

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

评论(1

谈下烟灰 2024-11-26 09:56:08

这是一个UIActionSheet。在 iPad 上,如果它不是从另一个弹出窗口中呈现,则会出现“弹出窗口”外观。

It's a UIActionSheet. On iPad, it gets a "popover" appearance if it's not presented from within another popover.

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