I\'m doing a universal App using size classes and I\'m trying to use a SplitView with a TabBarController in the Master/Primary View. Before adding the splitView all worked f
So, I found something that works, even if is not the standard behaviour:
- (void)collapseSecondaryViewController:(UIViewController *)secondaryViewController forSplitViewController:(UISplitViewController *)splitViewController
{
[self.selectedViewController.navigationController collapseSecondaryViewController:secondaryViewController forSplitViewController:splitViewController];
}
That is equivalent to return always YES in the splitViewController:collapseSecondaryViewController:ontoPrimaryViewController: delegate method. Like this you always discard the secondary controller.
Hope this can help someone.