跳转到指定的类
for (UIViewController *controller in self.navigationController.viewControllers) {
if ([controller isKindOfClass:[要返回的类名 class]]) {
[self.navigationController popToViewController:controller animated:YES];
}
}
跳转到指定的类
for (UIViewController *controller in self.navigationController.viewControllers) {
if ([controller isKindOfClass:[要返回的类名 class]]) {
[self.navigationController popToViewController:controller animated:YES];
}
}
本文标题:iOS 在App内返回到指定页面
本文链接:https://www.haomeiwen.com/subject/yqnzkttx.html
网友评论