Pregunta

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.

¿Fue útil?

Solución 2

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

Otros consejos

Check out this Xamarin tutorial (Multi-Screened Applications). You can download the sample project, have a look at the code and try adding a UIToolBar to the HomeScreen. I did it and it works like a charm.

I'd also suggest the use of a storyboard: it really simplifies dealing with the navigation. A tutorial can be found here.

Hope this helps.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top