比如要跳转到BObleVC界面
引入BObleVC.h后
#import "BObleVC.h"
在需要的地方按钮或者触摸手势中加入
for (UIViewController *temp in self.navigationController.viewControllers){
            if ([temp isKindOfClass:[BObleVC class]]) {//BObleVC要跳转的界面
                [self.navigationController popToViewController:temp animated:YES];
            }
        }

 

 int index = (int)[[self.navigationController viewControllers]indexOfObject:self];//(index 本页面的标记,向前跳转的个数进行减少)
            [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-1] animated:YES];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案