在APPDelegate里可通过该方法拿到当前页签
int index = [self.tabBarController selectedIndex];
//拿到tabbar的当前分栏的NavigationController
UINavigationController *nav = [self.tabBarController.viewControllers objectAtIndex:self.tabBarController.selectedIndex];
在APPDelegate里可通过该方法拿到当前页签
int index = [self.tabBarController selectedIndex];
//拿到tabbar的当前分栏的NavigationController
UINavigationController *nav = [self.tabBarController.viewControllers objectAtIndex:self.tabBarController.selectedIndex];
本文标题:iOS 获取tabbar 的当前页签
本文链接:https://www.haomeiwen.com/subject/cusbhxtx.html
网友评论