tabBarControllerを使って5つのViewControllerを切り替えるアプリを作っています。
その中の一つのViewControllerをbackGroundViewControllerとします。
このbackGroundViewControllerにおいて、別のPostViewControllerを下記の様にモーダル表示させています。
override func viewWillAppear(_ animated: Bool) { let postView: PostViewController = (self.storyboard!.instantiateViewController(withIdentifier: "PostViewController") as? PostViewController)! postView.modalPresentationStyle = UIModalPresentationStyle.overFullScreen self.present(postView as UIViewController, animated: true, completion: nil) }
このPostViewControllerを閉じる時、もしくは閉じるまでに親ViewControllerであるbackGroundViewControllerを別のViewControllerに遷移させたいのですが、どのようにやれば良いのか分からず苦戦しております。
コードはSwift3、Xcode8.2.1で開発しています。
アドバイスいただければ幸いです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/06 13:44