I am trying to hide the back button from my navigationcontroller on a certain view(using storyboard)
I tried to hide the bar back button overriding the ViewWillAppear
, but it does not seem to happen.
Here is the code:
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
this.NavigationController.NavigationItem.SetHidesBackButton (true, true);
}
just change to :
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
this.NavigationItem.SetHidesBackButton (true, false);
}