iPhone application lifecycle
Posted
by iter
on Stack Overflow
See other posts from Stack Overflow
or by iter
Published on 2010-03-14T03:45:03Z
Indexed on
2010/03/14
3:55 UTC
Read the original article
Hit count: 325
InterfaceBuilder generates this method for me in fooAppDelegate.m:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:[navigationController view]];
[window makeKeyAndVisible];
}
IB also puts UIWindow *window;
in fooAppDelegate.h and @synthesize window;
in fooAppDelegate.m, and correspondingly for navigationController
. IB generates code to release window
and navigationController
in dealloc
.
I cannot see any code that allocates and initializes the window
and the navigationController
. I wonder where that happens.
Ari.
© Stack Overflow or respective owner