So, I'm programming a universal application, and with iOS 8, it seems easiest to create split views to ensure that everything properly appears on iPhones and iPads. The dominant UI component in my app is a tab bar.
One of my tabs is a tableview that acts as a menu. I want to push a split view controller from didSelectRowAtIndexPath like so:
[self.navigationController pushViewController:ytSplitViewController animated:YES];
This returns an error: Split View Controllers cannot be pushed to a Navigation Controller
I can modally present the view controller, but this hides my tab bar and makes my interface more convoluted (an undesirable result)
[self.navigationController presentViewController:ytSplitViewController animated:YES completion:nil];
Is there a workaround that I can employ to present my SplitViewController within my UI paradigm? More clearly, can I essentially push my split view controller using a different method?
In case it's relevant, this is how I create my split view:
YTTableViewController *ytTableViewController = [YTTableViewController new];
UINavigationController *ytNavigationController = [[UINavigationController alloc] initWithRootViewController:ytTableViewController];
YTDetailViewController *ytDetailViewController = [YTDetailViewController new];
UINavigationController *ytDetailNavigationController = [[UINavigationController alloc] initWithRootViewController:ytDetailViewController];
NSArray *ytViewArray = [NSArray arrayWithObjects:ytNavigationController, ytDetailNavigationController, nil];
UISplitViewController *ytSplitViewController = [UISplitViewController new];
ytSplitViewController.viewControllers = ytViewArray;
ytSplitViewController.delegate = ytDetailViewController;