Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I was able to work around the storyboard issue. I had a universal app with master detail storyboard setup so I left them all in place and changed the initialization of the app to not use storyboards and instead programmatically set it up in my applicationDidFinishLaunching like so:</p> <pre><code>self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPad" bundle:nil]; self.masterController = [storyboard instantiateViewControllerWithIdentifier:@"masterController"]; self.detailController = [storyboard instantiateViewControllerWithIdentifier:@"detailController"]; self.splitViewController = [[MGSplitViewController alloc] init]; self.splitViewController.masterViewController = self.masterController; self.splitViewController.detailViewController = self.detailController; ACALandingVC* landingVC = [self.detailController.childViewControllers objectAtIndex:0]; landingVC.splitController = self.splitViewController; self.splitViewController.delegate = landingVC; //self.splitViewController.splitWidth = 5; self.splitViewController.allowsDraggingDivider = YES; self.splitViewController.dividerStyle = MGSplitViewDividerStylePaneSplitter; self.splitViewController.splitPosition = 350; self.splitViewController.splitWidth = 10; self.window.rootViewController = self.splitViewController; } else { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil]; UITabBarController* firstVC = [storyboard instantiateInitialViewController]; self.window.rootViewController = firstVC; [[UINavigationBar appearance] setTintColor:[UIColor lightGrayColor]]; } [self.window makeKeyAndVisible]; </code></pre> <p>My AppDelegate.h looks like:</p> <pre><code>@class MGSplitViewController; @interface ACAAppDelegate : UIResponder &lt;UIApplicationDelegate&gt; @property (strong, nonatomic) UIWindow *window; @property (nonatomic, strong) MGSplitViewController* splitViewController; @property (nonatomic, strong) UITabBarController* masterController; @property (nonatomic, strong) UINavigationController* detailController; @end </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload