[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];
或
for (UIViewController *controller in self.navigationController.viewControllers) {
if ([controller isKindOfClass:[你要跳转到的Controller class]]) {
[self.navigationController popToViewController:controller animated:YES];
}
}
或
[self.navigationControllerpopToViewController:[self.navigationController.viewControllersobjectAtIndex: ([self.navigationController.viewControllerscount] -6)]animated:NO];
网友评论