【问题标题】:How to get following pop up menu in Swift? [duplicate]如何在 Swift 中获得以下弹出菜单? [复制] 【发布时间】:2020-06-29 23:48:56 【问题描述】: 我希望在用户按下按钮时有一个类似的弹出菜单 如何实现它? 我遇到的唯一类似的帖子是this one,但可惜不是用 Swift 编写的 【问题讨论】: 这能回答你的问题吗? UIAlertController - add custom views to actionsheet @kjoe,确实如此,谢谢。 标签: ios swift 【解决方案1】: 这称为 UIAlertController,使用 .actionSheet 样式。见 https://developer.apple.com/documentation/uikit/uialertcontroller 了解更多信息。 【讨论】: