title: How to instantiate different View from AppDelegate using Storyboard without Tab or Nav Controller?
body: <p>I'm trying to build an app (first one) that has webview. I have used Storyboard and I implemented a WebView that works perfectly. But now it needed to make login using Facebook so I added a new view to Storyboard and I would like to load the root view based on login status. When I mark a view as initial view controller the app works and shows that view but, how could I change that just before show the view?.</p>
  
  <p>I've tried this code and it doesn't work:</p>
  
  <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
  UIViewController *vc =[storyboard instantiateViewControllerWithIdentifier:@"LoginViewController"];
  
  // Set root view controller and make windows visible
  self.window.rootViewController = vc;
  [self.window makeKeyAndVisible];
  </code></pre>
  
  <p>I have this error: "2012-12-12 16:40:51.219 MoonBooster[15056:c07] Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set?"</p>
  
  <p>I am not sure where is the identifier for a View take from and I'm thinking about to re-design the app just not to use Storyboards neither segues because I'm not using Nav or Tab View Controllers (we don't need it) so I only can use modal segues.</p>
  
  <p>Thank you for your help</p>