ios - 如何使用 popupdialogue 从弹出 Controller 中关闭弹出窗口?

标签 ios iphone swift popup

我正在使用“PopupDialog”来显示弹出窗口。我的问题是如何在单击弹出窗口中的提交自定义按钮时关闭弹出窗口。

Popup 在 ViewController 中。 Popupview Controller 名称是 PopUPController。

所以我想关闭 PopUPController 的弹出窗口。

最佳答案

使用 dismiss 方法关闭 PopupDialog

self.dismiss(animated: true, completion: {})

关于ios - 如何使用 popupdialogue 从弹出 Controller 中关闭弹出窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44773250/

相关文章:

ios - 取消订阅后,用户仍可以访问应用程序

ios - 字符串操作 : More advanced substring

ios - UIView 子类没有接收到 touchesBegan、touchesEnded

ios - 以编程方式在 UITabBarController 和 UINavigationController 中呈现 View

swift - 在子类化 NSURLSession Swift 时,初始化程序不会覆盖指定的初始化程序

iphone - 在哪里构建自定义 UITableViewCell : in layoutSubviews or initWithStyle:reuseIdentifier?

iphone - CS193P - 添加取消按钮到 iOS 计算器

iphone - 当 View Controller 被带到 View 堆栈的顶部时,如何让它运行更新代码?

ios - TableView 滚动错误

ios - 如何 : Use Automator to Distribute Beta Applications for Over The Air Installation