iOS 多级页面返回
发布日期:2021-06-20 03:26:09 浏览次数:7 分类:技术文章

本文共 324 字,大约阅读时间需要 1 分钟。

NSInteger index = (NSInteger)[[self.navigationController viewControllers] indexOfObject:self];if (index > 2) {       [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index-2)] animated:YES];}else{       [self.navigationController popToRootViewControllerAnimated:YES];}

转载地址:https://blog.csdn.net/Fu_Tong/article/details/90411027 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:ios 获取手机上app列表
下一篇:iOS移除父控件中所有子控件

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月17日 21时16分31秒