を却下、私はそれがこのようになります。ストーリーボードではモーダル別のビューコントローラB.ショーのViewControllerと最初
を提示1つのビューコントローラ「A」を持っている:
UIViewController "A" -> UINavigationViewController "B" -> rootViewController" "C"
私の目標が提示することですBと隠すA、どうすればそれを達成できますか?
AViewController
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "showSomething" {
if let destination = segue.destination as? UINavigationController {
if let viewController = destination.viewControllers.first as? CViewController {
viewController.delegate = self
}
}
}
}
CViewController A.私はCでプロパティを設定しようと、そこにAを消すが、私はCを却下するので、それは、働いていないと左
override func viewDidLoad() {
super.viewDidLoad()
self.delegate.dismiss(animated: false)
}