self.window.rootViewController vs window addSubview
- by Gazzer
I've noticed a lot of examples for iPhone apps in the Application Delegate
- (void)applicationDidFinishLaunching:(UIApplication *)application
have
[window addSubview: someController.view]; (1)
as opposed to
self.window.rootViewController = self.someController; (2)
Is there any practical reason to use one over the other? Is one technically correct? Do controller's have the an equivalent command to number (2) like
self.someController.rootController = self.someOtherController; // pseudocode