Code:
self.navigationItem.setHidesBackButton(true, animated: false)
Back button is not getting hidden.
Also tried:
self.navigationController!.navigationItem.setHidesBackButton(true, animated: false)
in the viewDidLoad()
method. But it is not working. Why does this not work?