I want to hide the back button when transitioning from one view to another. I read the questions regarding this problem and every answer was \"use hidesBackButton\"
hidesBackButton
You can use the code below to hide back button on UINavigationBar.
UINavigationBar
Swift 3;
override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.navigationItem.hidesBackButton = true }