jjzjj

UIAlertControllerStyleActionSheet

全部标签

ios - 无法在 iPad 中使用应用程序内的 facebook 按钮注销

我已经在iOS应用程序中实现了facebook登录。在iPhone中,一切运行良好,但在iPad中,它不显示uialertcontrolleractionsheet,未打开注销选项。它会产生以下错误:您的应用程序呈现了一个UIAlertControllerStyleActionSheet样式的UIAlertController()。具有此样式的UIAlertController的modalPresentationStyle是UIModalPresentationPopover。您必须通过警报Controller的popoverPresentationController提供此弹出窗口的

ios - UIAlertController 和 UIAlertControllerStyleActionSheet 自定义

我正在尝试创建一个样式为UIAlertControllerStyleActionSheet(以前称为UIActionSheet)的自定义UIAlertController,但我遇到了很多麻烦,无法简单地对其进行自定义。我希望我的UIAlertAction在左侧包含一个图像并减小按钮大小。我知道这是可行的:(这正是我要找的)我搜索了几个小时,但在Internet上找不到任何可以帮助我完成这项简单任务的教程。另外,由于UIActionSheet自IOS9以来已被弃用,任何时候我试图找到它不再可用的解决方案。另外,我读到UIAlertController不打算被子类化......有谁知道如何