【发布时间】:2019-03-21 05:54:06
【问题描述】:
我在UIViewController 上使用CustomAlertViewController 作为警报。当前代码 sn -p 呈现CustomAlertViewController -
CustomAlertViewController: UIViewController {}
self.present(CustomAlertViewController(), animated: true, completion: {})
但我想在视图层次结构顶部添加CustomAlertViewController。
有什么建议可以实现吗?
【问题讨论】:
-
什么?解释为什么你需要这样做
-
添加
Window而不是在viewController上显示。 -
喜欢 UIAlertController
标签: ios swift uialertcontroller