前提是,由N个视图跳转过来的。

   //返回前n个
    NSInteger index=[[self.navigationController viewControllers]indexOfObject:self];
    
    [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-n]animated:YES];

  

相关文章:

  • 2022-12-23
  • 2021-11-01
  • 2021-10-12
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-08-27
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
相关资源
相似解决方案