0
I wanted to change the Text that is on the BACK button on IOS
What I tried to:
public override void ViewDidLoad()
{
NavigationItem.BackBarButtonItem = new UIBarButtonItem { Title = "Teste" };
base.ViewDidLoad();
//nao funciona NavigationItem.BackBarButtonItem = new UIBarButtonItem { Title = "Teste" };
//nao funciona NavigationController.NavigationBar.BackItem.BackBarButtonItem.Title = "teste";
}
public override void ViewDidAppear(bool animated)
{
NavigationItem.BackBarButtonItem = new UIBarButtonItem { Title = "Teste" };
base.ViewDidLoad();
//nao funciona NavigationItem.BackBarButtonItem = new UIBarButtonItem { Title = "Teste" };
//nao funciona NavigationController.NavigationBar.BackItem.BackBarButtonItem.Title = "teste";
}
None of these ways worked.
instantiate the button as
NavigationPage
instead ofNavigationItem
doesn’t work?– Leonardo