Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>How to <em>without</em> a dummy initial view controller</strong></p> <p>Ensure all initial view controllers have a Storyboard ID.</p> <p>In the storyboard, uncheck the "Is initial View Controller" attribute from the first view controller.</p> <p>If you run your app at this point you'll read:</p> <pre><code>Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set? </code></pre> <p>And you'll notice that your window property in the app delegate is now nil.</p> <p>In the app's setting, go to your target and the <code>Info</code> tab. There clear the value of <code>Main storyboard file base name</code>. On the <code>General</code> tab, clear the value for <code>Main Interface</code>. This will remove the warning.</p> <p>Create the window and desired initial view controller in the app delegate's <code>application:didFinishLaunchingWithOptions:</code> method:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *viewController = // determine the initial view controller here and instantiate it with [storyboard instantiateViewControllerWithIdentifier:&lt;storyboard id&gt;]; self.window.rootViewController = viewController; [self.window makeKeyAndVisible]; return YES; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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