I tried to remove the backbutton of uinavigationcontroller by using
appdelegate.navigationController.navigationItem.hidesBackButton=YES;
but it does not remove the backbutton after the pushing a new viewcontroller into navigation stack.How to hide this?
In the view controller's viewDidLoad method that you want to hide the back button:
self.navigationItem.hidesBackButton = YES;
Your above line is wrong. do it with :
self.navigationController.navigationItem.hidesBackButton = TRUE;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With