按鈕中的實(shí)現(xiàn)方法,復(fù)制代碼话侧,改成自己的TabBarViewController ?selectedIndex 為你要跳轉(zhuǎn)的目標(biāo)tabbar索引
?AppDelegate*delegate = (AppDelegate*)[[UIApplicationsharedApplication]delegate];
? ? MainTabBarViewController *tab = (MainTabBarViewController *)delegate.window.rootViewController;
? ? tab.selectedIndex = 1;