I think I got it to work using the following:
In storyboard, Split View Controller's Storyboard ID is 'splitVc':
Then, I used the following code in my AppDelegate
:
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
UISplitViewController *splitVc1 = [self.window.rootViewController.storyboard
instantiateViewControllerWithIdentifier:@"splitVc"];
UISplitViewController *splitVc2 = [self.window.rootViewController.storyboard
instantiateViewControllerWithIdentifier:@"splitVc"];
UISplitViewController *splitVc3 = [self.window.rootViewController.storyboard
instantiateViewControllerWithIdentifier:@"splitVc"];
UITabBarController *tabBarVc = (UITabBarController *)self.window.rootViewController;
tabBarVc.viewControllers = @[splitVc1, splitVc2, splitVc3];
return YES;
}
This gave me what appeared to be 3 separate instances of the UISplitViewController
, each assigned to 1 of 3 tabs in the UITabBarController
, which is the root view controller for my UIWindow
.
Is that what you wanted?