ios - swift proper way to hide navigation bar for a specific view -


i want hide navigation bar single view , make own back-button.

both of these works, difference?

override func viewdidload() {         super.viewdidload()          self.navigationcontroller?.setnavigationbarhidden(true, animated: true)          self.navigationcontroller?.navigationbarhidden = true 

one animates hiding of navigation bar, other doesn't.

you not notice in case because in viewdidload() navigation bar not visible yet.


Comments