I've created my Storyboard with a LoginViewController which is set as the RootViewController. If the user is already logged then I just segue to the HomeViewController.
The problem is on the HomeViewController. I don't want the user to navigate back to the LoginViewController so I'm trying to hide the back button in the HomeViewController using:
public override void ViewWillAppear(bool animated)
{
NavigationItem.SetHidesBackButton(true, false);
}
Doing this hides the button on the HomeViewController as expected, however when I navigate to any other VC's the Back button is still hidden but tappable because I can tap where the button would be and it would navigate back to the HomeVC. If I then navigate again to the same VC as before, the Back button is visible. So basically it's only hidden on the first load.
Any ideas?