popToViewController用法:
第一种:
[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]; } }
转载自:http://www.cocoachina.com/bbs/read.php?tid=87184