I have a navigation controller and a button located on the right of the navigation bar that is called toggle. When ever I press the button I basically want to toggle between a table view and a map view. How can I do this?
Can this be done by pushing and popping from the navigation stack back and forth?
Ok… what you want can be done using navigationControllers and such.
You just need to make a method in both viewControllers, and in the viewDidLoad of each put this:
then you want this method in the first view you get to (lets say its the list view):
then in the mapview: