iOS TabBarViewController一个按钮跳转到另一TabBarViewController页面

按钮中的实现方法,复制代码,改成自己的TabBarViewController  selectedIndex 为你要跳转的目标tabbar索引

 AppDelegate*delegate = (AppDelegate*)[[UIApplicationsharedApplication]delegate];

    MainTabBarViewController *tab = (MainTabBarViewController *)delegate.window.rootViewController;

    tab.selectedIndex = 1;

你可能感兴趣的:(iOS TabBarViewController一个按钮跳转到另一TabBarViewController页面)