你的位置:首页 > 操作系统

[操作系统]用数组取到当前栈内的ViewController 并根据下标取某个ViewController


NSArray *navArray = self.navigationController.viewControllers;TabsViewController *tabsVC = [[TabsViewController alloc]init];tabsVC = [navArray objectAtIndex:1];[self.navigationController popToViewController:tabsVC animated:YES];