I have the following code:
UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self
action:@selector(showAddNewView)];
- (void) showAddNewView
{
[self performSegueWithIdentifier:@"addNew" sender:self];
}
The segue executes fine, but the view is suppose to have a navigation bar at the top w/ title “Add New Recipe”. But it doesn’t display that part. If I change the transition to push, it looks fine.
Here is my scene:

Any ideas?
EDIT: I am having trouble with the answer, I had it working but now it is crashing again…


Modal segues bring an entirely new view controller on top of whatever is currently being used. If you wish the new view controller to have the navigation bar with that default behavior, then you need to make the root view controller that is appearing from the modal transition a navigation controller.