Reputation: 1002
Above is my storyboard. As you can see, view a and view b are both on the same navigation controller. They are both show segues. The segue to View B is activated manually by a button on the subview on the view of the previous "Home" controller and that works perfectly and has a back button. Here's the code:
- (void)storyButtonPressed:(UIButton *)button {
[self performSegueWithIdentifier:@"showStory" sender:self];
}
The segue to view A is activated manually by an if statement to see if the user is registered:
if (currentUser.active != true) {
[self performSegueWithIdentifier:@"showSignUp" sender:self];
}
However view A will not show up with a back button even though I'm going about it just like view B. I even tried to add a button to the navbar and manually pop off the view but that button won't even show up! Here's my document outline:
How do I get my view A to have a back button or at least allow me to add one manually?
Thank you.
Upvotes: 1
Views: 774
Reputation: 402
Are you sure you the segue to A is set to "Show" and not to "Show Detail"?
Also the cancel button in your navBar looks like it might be covering up your button. You might try pinning your cancel button to the right side of your navBar and then seeing if it shows up with a back button.
Upvotes: 2