AppDelegate, RootViewController, and UIApplication
- by guy8214
Hi Guys
I am trying to figure out the relationship between the appdelegate, RootViewControoler, and UIApplication. Here is what I kinda have figured out so far:
When starting your application up, main.m gets loaded.
From here, your MainWindow.xib gets loaded.
In your MainWindow.xib, your File's Owner is of type UIApplication.
You set your UIApplication's delegate to your AppDelegate.
In your AppDelegate's source code, you can set your RootViewController to be the first view shown.
Is this right? What prompts AppDelegate to initially run it's
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { }
method?