Search code examples
c#xamarin.iostoolbarpushviewcontroller

C# Xamarin.IOS / MonoTouch - Toolbar Disappears


I have a Xamarin.IOS/Monotouch project with 2 views - MainView and View2.

  • My MainView window has a navigationController at the top, and a toolbar at the bottom.
  • When I call PushViewController(View2,true); - I get pushed from MainView to my second view (View2).
  • View2 also has a navigationController at the top, but it DOES NOT have a toolbar at the bottom - intentionally.
  • When I click the "Back" button on View2 to push back to my MainView, the toolbar at the bottom of MainView has disappeared.

Any ideas on how to get around this?

Much appreciated.


Solution

  • My solution in the end was to set "ToolBar.Hidden = false;" upon arriving in the view that I was pushing to.