I have a view on a storyboard the has a button to perform a certain action. To perform this action though, the user must be logged in. The button handler tests if the user i
Assuming by your use of "push" you mean that you are using a UINavigationController, then you can use the following to return to the top of the stack.
[self.navigationController popToRootViewControllerAnimated:YES];
or
UIViewController *prevVC = [self.navigationController.viewControllers objectAtIndex:];
[self.navigationController popToViewController:prevVC animated:YES];
to pop to a specific level where is the level.
or
[self.navigationController popViewControllerAnimated:YES];
If you just want to pop one level back up the navigation stack.