Hi! My iphone app is launching very slowly, and I have no idea why. My application:didFinishLaunchingWithOptions:
isn't really heavy, I'm just setting the managedObjectContext for each of my five view controllers of my tab bar controller.
Does anybody have an idea what causes the slow launch? Thanks.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
mathRootViewController.managedObjectContext = self.managedObjectContext;
favoriteRootViewController.managedObjectContext = self.managedObjectContext;
chemistryRootViewController.managedObjectContext = self.managedObjectContext;
physicsRootViewController.managedObjectContext = self.managedObjectContext;
shareRootViewController.managedObjectContext = self.managedObjectContext;
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
return YES;
}