difference between navigationBar.isHidden and setNavigationBarHidden
问题 I have view controller which I am pushing from a view controller where navigation bar is hidden. But I want to show the navigation bar in destination view controller. I tried with this statement it was not showing navigationBar. self.navigationController?.navigationBar.isHidden = false I tried this statement it is working self.navigationController?.setNavigationBarHidden(false, animated: true) I want to know what is difference? 回答1: Nope they are not the same, self.navigationController?