Return to top of UINavigationController stack when

2019-07-18 09:21发布

问题:

I have a UITabBarController interface with 4 tabs. Each tab has a UINavigationController. How would I return to the topmost UIViewController in each UINavigationController whenever a tab bar button is pressed?

回答1:

-popToRootViewControllerAnimated