AppDelegate, RootViewController, and UIApplication

Posted by guy8214 on Stack Overflow See other posts from Stack Overflow or by guy8214
Published on 2011-02-10T06:12:57Z Indexed on 2011/02/10 7:25 UTC
Read the original article Hit count: 135

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c