[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2]
animated:YES];
或
for (UIViewController *temp in self.navigationController.viewControllers) {
if ([temp isKindOfClass:[你要跳转到的Controller class]]) {
[self.navigationController popToViewController:temp animated:YES];
}
}
UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
FeedListViewController *vc = [board instantiateViewControllerWithIdentifier:@"FeedListViewController"];
for (UIViewController *temp in self.navigationController.viewControllers) {
if ([temp isKindOfClass:[vc class]]) {
[self.navigationController popToViewController:temp animated:YES];
}
}
阅读(1268) | 评论(0) | 转发(0) |