I'm new, I have NavigationController with ViewController , and view with my CurrencyViewController controller, and in DialogViewController , in which there are 4 DLRadioButton, when I click, I process the event for the previous view, using the code self.performSegue(withIdentifier: "close", sender: self) (yes, segue tied) I get the transition but the navigation bar disappears, tell me how to deal with it? What I tried:
- In the lifecycle controller tried
navigationController?.setNavigationBarHidden - Used such
let controller = UIStoryboard (name: "Main", bundle: Bundle.main) .instantiateViewController (withIdentifier: "close")
Tried in such functions
override func viewWillAppear(_ animated: Bool) { self.navigationController?.setNavigationBarHidden(false, animated: true) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) navigationController?.setNavigationBarHidden(false, animated: false) } 