cityingMa

用数组取到当前栈内的ViewController 并根据下标取某个ViewController

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

 

posted on 2016-02-22 10:53  cityingMa  阅读(530)  评论(0编辑  收藏  举报

导航