title: Storyboards - initWithCoder gets called twice
body: <p>Important thing to know I guess is that I am using Storyboards. I am doing the following in <strong>didFinishLaunchingWithOptions</strong>:</p>
  
  <pre><code>UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
  
  FirstView *mvc = [sb instantiateViewControllerWithIdentifier:@"FirstView"];
  SecondView *tvc = [sb instantiateViewControllerWithIdentifier:@"SecondView"];
  
  NSArray* controllers = [NSArray arrayWithObjects:[self addNavigationToViewController:mvc], [self addNavigationToViewController:tvc], nil];
  
  // add controllers to a table view
  UITabBarController *tb = [[UITabBarController alloc] init];
  [tb setViewControllers:controllers];
  
  [self.window setRootViewController:tb];
  </code></pre>
  
  <p><strong>addNavigationToViewController</strong> is a method I am using in order to embed a view controller inside a UINavigationController</p>
  
  <p>When I run this app the <code>initWithCoder</code> in the <strong>FirstView</strong> is called twice. I found the reason but I don't know how to do it the right way.</p>
  
  <p>Basically the FirstView is getting initialized once due to it being <em>Initial Scene</em> ( there is a checkmark in the Attributes Inspector that sets the view "Is initial view controller" ) and the second time:</p>
  
  <pre><code>FirstView *mvc = [sb instantiateViewControllerWithIdentifier:@"FirstView"];
  </code></pre>
  
  <p>If I uncheck <em>Initial Scene</em> it complains that "perhaps the designated entry point is not set".</p>
  
  <p>I am doing something wrong but I have no clue what it is. </p>
  
  <p>Any hint would be appreciated.</p>