[self.navigationController popViewControllerAnimated:YES];
This code is to pop only one viewController.
How should I do to pop all or Specific Number viewsController?
[self.navigationController popViewControllerAnimated:YES];
This code is to pop only one viewController.
How should I do to pop all or Specific Number viewsController?
You can use popToRootViewControllerAnimated: (to pop all) or popToViewController:animated: to pop to a specific view controller in the navigation stack.