1 推出到根视图控制器
[self.navigationController popToRootViewControllerAnimated:YES];
2 推出到指定的视图控制器
for (UIViewController *controller in self.navigationController.viewControllers)
{
if ([controller isKindOfClass:[AViewController class]]) {
AViewController *A =(AViewController *)controller;
[self.navigationController popToViewController:A animated:YES];
}
}
仅做记录!
作者:稻草人11223
标签:--,navigationController,ios,pop,AViewController,controller,视图,YES,self From: https://blog.51cto.com/u_13188203/7190228