iOS 让导航控制器pop回指定的控制器
程序员文章站
2022-06-04 13:16:07
...
NSMutableArray *viewControllers = [NSMutableArray arrayWithArray:[self.navigationController viewControllers]];
for (UIViewController *myViewController in viewControllers) {
if ([myViewController isKindOfClass:[RequiredViewController class]]) {
[self.navigationController popToViewController: myViewController animated:YES];
}
}
O(∩_∩)O~
上一篇: 如何更改浏览器左上角title图标
下一篇: php 开奖结果换算