title: iOS 5 Upgrade Needing rootViewController
body: <p>The App I created for iOS 4 does not work once run on iOS 5.  I am receiving the following error:</p>
  
  <p>"Applications are expected to have a root view controller at the end of application launch"</p>
  
  <p>How can I update the following code to fix this error?</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {  
  
  UINavigationController *navcon = [[UINavigationController alloc] init] 
  TSViewController *pvc = [[TSViewController alloc] init];
  
  [navcon pushViewController:pvc animated:NO];
  [navcon setNavigationBarHidden:YES animated:NO];
      [pvc release];
  [window addSubview:navcon.view];
  
  
  return YES;
  </code></pre>
  
  <p>}</p>