views:

37

answers:

1
[self.navigationController popViewControllerAnimated:YES];

This code is to pop only one viewController.

How should I do to pop all or Specific Number viewsController?

+3  A: 

You can use popToRootViewControllerAnimated: (to pop all) or popToViewController:animated: to pop to a specific view controller in the navigation stack.

gerry3