Instance Method

applicationDidFinishLaunching:

Tells the delegate when the app has finished launching. Don’t use. Instead, use application:didFinishLaunchingWithOptions:.

Declaration

- (void)applicationDidFinishLaunching:(UIApplication *)application;

Parameters

application

Your singleton app object.

Discussion

Although not formally deprecated, do not use this method in your apps. Use the application:willFinishLaunchingWithOptions: and application:didFinishLaunchingWithOptions: methods instead.

Your implementation of this method should create your app’s user interface and initialize the app’s data structures. If your app persists its state between launches, you would also use this method to restore your app to its previous state.

After calling this method, the app also posts a UIApplicationDidFinishLaunchingNotification notification to give interested objects a chance to respond to the initialization cycle.

See Also

Initializing the App

application:willFinishLaunchingWithOptions:

Tells the delegate that the launch process has begun but that state restoration has not yet occurred.

application:didFinishLaunchingWithOptions:

Tells the delegate that the launch process is almost done and the app is almost ready to run.

UIApplicationLaunchOptionsKey

Keys used to access values in the launch options dictionary passed to your app at initialization time.