SecondViewController(TabBarController)にあるButtonを押したらFirstsettingViewControllerに遷移しまた戻るように作っています。ですがFisrtSettingViewControllerからSeconViewControllerに戻った時、タブが消えてしまいます。どう対処したら良いでしょうか?
FirstSettingViewController
1class FirstSettingViewController: UIViewController { 2 3 override func prepare(for segue: UIStoryboardSegue, sender: Any?) 4 { 5 if segue.identifier == "setVolume1" 6 { 7 let SecondViewController = segue.destination as! SecondViewController 8 } 9 } 10 11 override func viewDidLoad() { 12 super.viewDidLoad() 13 } 14 15 override func didReceiveMemoryWarning() { 16 // Dispose of any resources that can be recreated. 17 } 18 19 20 /* 21 // MARK: - Navigation 22 23 // In a storyboard-based application, you will often want to do a little preparation before navigation 24 override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 25 // Get the new view controller using segue.destinationViewController. 26 // Pass the selected object to the new view controller. 27 } 28 */ 29 30} 31
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/02 02:14
2018/10/02 02:17
2018/10/02 02:23
2018/10/02 02:38