As the title says the app freezes at the start screen then xcode comes up and displays a green arrow near
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
Any ideas? Thanks!
Update
Here is the full block of 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;
}
Well as far as I understood, you just want to make your own viewController at startup. Well copy paste the following code I am telling you and give your response.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {MainViewController *aViewController = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil];
[self.window setRootViewController:aViewController];[self.window makeKeyAndVisible];return YES;}Kindly check once that its
setRootViewControllerorrootViewControlleronly. I didnt remember exactly. Hope you got the idea.Happy Coding!