这个是UITabBarController的功能。点击就是快速返回UINavigationController的rootViewController。 如果不想要这个功能,实现一下UITabBarControllerDelegate - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController NS_AVAILABLE_IOS(3_0); { if (self.selectedViewController == viewController) { return NO; } return YES; }
这个是UITabBarController的功能。点击就是快速返回UINavigationController的rootViewController。
如果不想要这个功能,实现一下
UITabBarControllerDelegate