Use the documentation
Let’s have a look at how the startup of an iPhone app works. The entry point is the main.m file in your project:

This does some basic setup:
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}Important here is the UIApplicationMain call which initializes the app. To learn more about UIApplicationMain (or about anything), have a look at the documentation. Go to Xcode > Preferences > Documentation and click GET for the iOS Library. This will download all the available documentation:

After it finishes downloading, select UIApplicationMain in the source code file and click Help > Search Documentation for Selected Text:

Hint: Configure a convenient key binding for Help > Search Documentation for Selected Text in Xcode > Preferences > Key Bindings:
