Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i create a global navigation stack?

I want a global navigation stack. When the user changes tabs or navigates to a new view in the same tab, I want to push the new view onto the global navigation stack. I want the back button in the navigation bar to go back to the previous view, which is sometimes a different tab, and sometimes a different view in the same tab.

enter image description here

like image 498
keep on you Avatar asked Oct 09 '22 16:10

keep on you


1 Answers

To achieve this effect, you could ditch the UITabBarController - and emulate the bar by using a custom view or customizing the standard UIToolbar.

Have one navigation controller with, with your customized toolbar always visible, and when buttons are tapped on it, just push the views you want onto the navstack.

like image 174
Peter Sarnowski Avatar answered Oct 12 '22 01:10

Peter Sarnowski