The App I created for iOS 4 does not work once run on iOS 5. I am receiving the following error:
"Applications are expected to have a root view controller at the end of application launch"
How can I update the following code to fix this error?
- (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;
}