- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Create the data controller.
DataController *controller = [[DataController alloc] init];
self.dataController = controller;
[controller release];
rootViewController.dataController = dataController;
// Override point for customization after app launch
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
In my application, I found the rootViewController.dataController = dataController;
did not work. And I setted a break point at the @synthesize dataController
, found @synthesize dataController
was not invoked.
What's wrong with my code.
I compare all my code with the SimpleDrillDownApp (an example from Apple), they are almost the same. Why my application did not work! The compile was passed. But it did not work right.
Anyone could help me?