<分区>
我在解雇 VC 时遇到了一些问题。
我的项目有 2 个 View Controller 。 View Controller A 和 View Controller B。
Viewcontroller A 有一个按钮。如果我按下这个按钮,第二个 ViewController B 会弹出。
第二个 ViewController (B) 有一个按钮。 如果我单击此按钮,此操作将开始:
@IBAction func dismiss(_ sender: UIBarButtonItem) {
self.presentedViewController?.dismiss(animated: true, completion: nil)
}
此操作实际上应该关闭 Viewcontroller 并再次显示 Viewcontroller A。
但是如果我按下这个按钮没有任何反应。
我是不是忘记了什么?