popToViewController用法:
第一种:
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:3]animated:YES];
第二种:
for (UIViewController *tempVC in self.navigationController.viewControllers) {
if ([tempVC isKindOfClass:[你要跳转到的Controller class]]) {
[self.navigationController popToViewController:tempVC animated:YES];
}
}