iOS 返回到指定的ViewController
for (UIViewController *vc in self.navigationController.viewControllers) { if ([vc isKindOfClass:[MyViewController class]]) { [self.navigationController popToViewController:vc animated:YES];
} }
for (UIViewController *vc in self.navigationController.viewControllers) { if ([vc isKindOfClass:[MyViewController class]]) { [self.navigationController popToViewController:vc animated:YES];
} }