ios开发之--pop到指定页面
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,转载请注明原文链接:https://www.cnblogs.com/hero11223/p/7575189.html