[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:?] animated:YES]; 或 for (UIViewController *temp in self.navigationController.viewControllers) { if ([temp isKindOfClass:[你要跳转到的Controller class]]) { [self.navigationController popToViewController:temp animated:YES]; } }
popToViewController的用法(跳转到你想跳转到的那个控制器)
时间: 2024-10-29 00:12:28