I have a Master-Detail iOS app, built from standard XCode template with storyboards. I need to display a view with a browser on most of the items, and a settings form (using FXForms) when user clicks the "Settings" item in UITableView of the Master.
I have found a way do it in iPhone, but can't find one in iPad. In iPhone storyboard I create another view controller and make another segue connection from Master to the new view controller. Then I do the following in didSelectRowAtIndexPath
if(indexPath.section == 0 && indexPath.row == 2) // settings
[self performSegueWithIdentifier:@"showSettings" sender:self];
else
[self performSegueWithIdentifier:@"showDetail" sender:self];
With this the Settings view come into place when I click Settings. Navigation back and forth also works.
However, in iPad the detailViewController seems to be always there, on the right of the SplitViewController. How can I modify the storyboard and/or code to swap default view to Settings and then swap back again?
I also found that default template from XCode creates "relationship" segues for iPad storyboard, a type which is not there in iPhone storyboard, and cannot be named like "showSettings" or "showDetail" as I did in iPhone case.