我有一个包含两个 UINavigationControllers 的 UITabBarController 设置。
其中一个 UINavigationController 包含一个 UIViewController,另一个 UINavigationController 包含两个 UIViewControllers。如果你导航到第二个 UIViewController 并点击已经被选中的 Tab,则会带您到 UINavigationController 的根视图控制器(这将是第一个 UIViewController)。
是否有方法可以阻止这种情况发生?我不希望用户能够点击已经选定的 Tab 去到导航控制器的根视图。