ios - 如何在 iOS 中制作自定义对话框屏幕?

标签 ios swift uialertcontroller

我想以类似于在 TestFlight 应用中找到的方式制作丰富的自定义对话框屏幕,as shown here

是否可以为此目的自定义 UIAlertController?如果是这样怎么办?或者我应该完全使用不同的组件吗?

最佳答案

UIAlertController 不能用于该屏幕。

我建议使用自己的 xib 创建您自己的 View 。

编写它使其工作方式类似于 UIAlertController,因为您可以请求屏幕,为其提供参数或对象以填充所有相关数据,然后从请求的 ViewController 中呈现它。

关于ios - 如何在 iOS 中制作自定义对话框屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40592745/

相关文章:

ios - CGImage 没有属性/元数据 (CGImageProperties)

swift - “ fatal error :在展开可选值时意外发现nil”是什么意思?

ios - 子类 uitableview 单元格以快速更改分隔符高度

ios - 将 UICollectionView 单元格数据传递到不同的 ViewController 时出现 EXC_BAD_INSTRUCTION

快速 fatal error : unexpectedly found nil while unwrapping an Optional value in adMob

ios - 在应用程序委托(delegate)中显示警报的方法失败,因为它的 rootViewController 不在 View 层次结构中

ios - UIAlertcontroller 中的可点击 url

ios - Apple 人机界面指南 - 提醒

ios - 当您按下音量按钮时,iOS 中的 UI 组件名称是什么?

ios - 如何将一个 Sprite 移动到其他移动 Sprite 的实际位置?