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
\"
Try adding this,This worked for me
navigationItem.hidesBackButton = true
This worked for me:
override func viewWillAppear(animated: Bool)
{
super.viewWillAppear(animated)
self.tabBarController?.navigationItem.hidesBackButton = true
}
Worked for me when I set it in init(), instead of viewDidLoad. Strange though