title: iOS Simulator Opens then xcode opens, app freezes at start screen
body: <p>As the title says the app freezes at the start screen then xcode comes up and displays a green arrow near </p>
  
  <pre><code> self.window.rootViewController = self.viewController;
   [self.window makeKeyAndVisible];
  </code></pre>
  
  <p>Any ideas?  Thanks!</p>
  
  <p><strong>Update</strong>
  Here is the full block of code:</p>
  
  <pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
   {
  MainViewController *aViewController = [[MainViewController alloc]       initWithNibName:@"MainViewController" bundle:nil];
  self.viewController = aViewController;
  
  [aViewController release];
  
  [window addSubview:[navigationController view] ];
  self.window.rootViewController = self.viewController;
  [self.window makeKeyAndVisible];
  
  return YES;
   }
  </code></pre>