【发布时间】:2021-07-30 03:25:59
【问题描述】:
我有一个覆盖模式 ViewController2 的 View(ViewController1)。 ViewController2 有三个选项
- 删除所有会话
- 选择地点
- 取消
在 ViewController1 中启动模态视图控制器是相当容易的
@objc func presentMenu() {
let overlayController = ViewController2()
overlayController.transitioningDelegate = self
overlayController.modalPresentationStyle = .fullScreen
present(overlayController, animated: true)
}
这基本上显示了 ViewController2。但是 viewController1 的代码已经过去了,我在哪里可以发现这个 ViewController2 已经被解除了?
【问题讨论】: