首页 > 代码库 > 【IOS】导航--跳转到任意级视图

【IOS】导航--跳转到任意级视图

 1 //方法一: 2 for(UIViewController *controller in self.navigationController.viewControllers){ 3  4            if([controller isKindOfClass:[OverWorkRecevice class]]){ 5  6                 OverWorkRecevice *owr =(OverWorkRecevice *)controller; 7  8                 [self.navigationController  popToViewController:owr animated:YES]; 9 10            }11 12 }13 //方法二: 14 [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];

 

【IOS】导航--跳转到任意级视图