ZNWNeedsRegistrationDetailViewController *registrationDetailVC = [[ZNWNeedsRegistrationDetailViewController alloc] init];
EditPersonInFoViewController *editPersonInFoVC = [[EditPersonInFoViewController alloc] init];
UIViewController *target = nil;
for (UIViewController * controller in self.navigationController.viewControllers) {
if ([controller isKindOfClass:[registrationDetailVC class]]) {
target = controller;
}else if ([controller isKindOfClass:[editPersonInFoVC class]]) {
target = controller;
}
}
if (target) {
[self.navigationController popToViewController:target animated:YES];
}
popToViewController返回到指定页面
最新推荐文章于 2024-01-08 14:33:18 发布