iOS pop到指定的控制器的方法
程序员文章站
2022-06-04 13:15:49
...
for (UIViewController *controller in self.navigationController.viewControllers) {
if ([controller isKindOfClass:[DiscoverController class]]) {
DiscoverController *discoverVC = (DiscoverController *)controller;
[self.navigationController popToViewController:discoverVC animated:YES];
}
}
上一篇: 内网搭建nginx 前置准备介绍