【发布时间】:2019-06-11 02:45:24
【问题描述】:
我有两个班级 A 和 B 。
class A{
override func viewWillAppear(_ animated: Bool) { .
print("")
}
let myPost = self.storyboard?.instantiateViewController(withIdentifier: "Completed") as! Completed
myPost.transitioningDelegate = self as? UIViewControllerTransitioningDelegate
myPost.modalPresentationStyle = .custom
self.present(myPost, animated: true, completion: nil)
}
class B{ .
dismiss(animated: true, completion: nil)
}
在这里,我展示了 A 类的 B 类。但是当我解散 B 类时,viewWillApper(在 A 类中)没有调用。如何做到这一点?
【问题讨论】:
-
能否请您edit 提出您的问题并发布实际复制您的问题的相关代码。