UITabBarController有个代理- (BOOL)tabBarController:(UITabBarController )tabBarController shouldSelectViewController:(UIViewController )viewController NS_AVAILABLE_IOS(3_0);你实现这个代理,然后判断是不是已经选中这个viewController就行啦,已选中的话return NO
UITabBarController有个代理- (BOOL)tabBarController:(UITabBarController )tabBarController shouldSelectViewController:(UIViewController )viewController NS_AVAILABLE_IOS(3_0);
你实现这个代理,然后判断是不是已经选中这个viewController就行啦,已选中的话return NO