navigationController在pop时,指定pop到某个页面,这个页面要在navigationController栈里有的
for (UIViewController *temp in self.navigationController.viewControllers) {
if ([temp isKindOfClass:[需要退到哪个类类名 class]]) {
[self.navigationController popToViewController:temp animated:YES];
}
}
时间: 2024-10-16 04:31:58