iOSpop到指定界面

int index = (int)[[self.navigationController viewControllers]indexOfObject:self];
  [self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:(index -2)] animated:YES];
原文地址:https://www.cnblogs.com/cfl911014/p/5217111.html