I assume that you are using the UINavigationController . Then you can use the popToRootViewControllerAnimated: method. You must do this with this line:
[self.navigationController popToRootViewControllerAnimated:NO];
You can read more about the UINavigationController in docs .
matsr source share