The iPad app that I'm working on makes use of Storyboards and segues. I'm trying to display a different view controller when the user clicks on different cells in the master view. After referring to different tutorials, the steps that were taken were -
- In the
Storyboard
,Master View Controller
, created static cells for the table view and added 3 different rows (i.e. cell 1, cell 2, cell 3) - Added a
View Controller
, selected it and attached aNavigation Controller
to it (Editor
->Embed In
->Navigation Controller
) - From cell 1 in
Master View
, I did a ctrl-click on theNavigation Controller
. - Chose
Segue Style
"Replace" andDestination
"Detail Split" - In tableView:didSelectRowAtIndexPath, added [self performSegueWithIdentifier:@"NewViewController" sender:self] to do the transition.
The result that I see is the detail view gets replaced.
But the navigation bar does not have the bar button item Master
.
So I'm unable to click the Master
button which would show the table containing cells from where I can navigate to a different view.
I've already read many blogs and seen commentary which talk about replacing a segue for similar problems. However nobody seems to have faced this specific issue while using storyboards and segues.
From my understanding using segues should help me achieve what I want. From those who have tried this approach, any pointers in the right direction will be helpful.