-(IBAction)jumpToHome:(id)sender
{
NSArray *controllerArr = self.navigationController.viewControllers;
for (NSObject *obj in controllerArr) {
if ([obj isKindOfClass:[HomeViewController class]]) {
HomeViewController *controller = (HomeViewController *)obj;
[self.navigationController popToViewController:controller animated:YES];
return;
}
}
HomeViewController *homeController = [[HomeViewControlleralloc] init];
[self.navigationControllerpopToViewController:homeController animated:YES];
pop已经存在的,push新的,
}