Reputation: 26752
When I add views to my UINavigationController
within a Tab and I then touch that tab again it pops to the root view. I was just wondering, is there any way to pop this to the root programmatically?
Upvotes: 1
Views: 438
Reputation: 16316
Yes, configure a delegate for the tab bar. When the proper tab is pressed, call the popToRootViewControllerAnimated:
method on the nav controller.
Upvotes: 3