导航(NavanavigationController)push和pop

//跳转到指定的控制器

for (UIViewController *Vc in self.navigationController.viewControllers) {
  if ([Vc isKindOfClass:[WJPersonCenterViewController class]]) {
  [self.navigationController popToViewController:Vc animated:YES];
  }
}

将来的自己,会感谢现在不放弃的自己!
原文地址:https://www.cnblogs.com/TheYouth/p/4926620.html