带按钮的 iPad UIPopoverController,与通讯录应用程序相同

发布于 2024-10-17 14:13:49 字数 203 浏览 6 评论 0原文

我想创建一个包含按钮的 PopoverController,如下所示:

在此处输入图像描述

我可以创建一个包含两个按钮的 UIViewController ,但它们与上面屏幕截图中显示的内容不同,

我该如何实现这一目标?

谢谢

I would like to create a PopoverController containing buttons, like this one:

enter image description here

I can create a UIViewController containing two buttons, but they won't be identical to those shown on screenshot above

How can I achieve this ?

Thanks

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

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

发布评论

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

评论(1

丢了幸福的猪 2024-10-24 14:13:49

这是一个UIActionSheet

在 iPad 上,当给定要呈现的特定矩形时,UIActionSheet 类将自身呈现为弹出视图。如果没有给定的矩形,它将显示在屏幕中央,类似于 UIAlertView

That is a UIActionSheet.

On the iPad the UIActionSheet class presents itself as a popover view when given a particular rect to present from. Without the given rect, it will display in the centre of the screen similar to a UIAlertView.

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