Instance Method

viewDidLoad

Called after the controller'€™s view is loaded into memory.

Declaration

- (void)viewDidLoad;

Discussion

This method is called after the view controller has loaded its view hierarchy into memory. This method is called regardless of whether the view hierarchy was loaded from a nib file or created programmatically in the loadView method. You usually override this method to perform additional initialization on views that were loaded from nib files.

See Also

Managing the View

view

The view that the controller manages.

viewIfLoaded

The view controller’s view, or nil if the view is not yet loaded.

viewLoaded

A Boolean value indicating whether the view is currently loaded into memory.

- loadView

Creates the view that the controller manages.

- loadViewIfNeeded

Loads the view controller’s view if it has not yet been loaded.

title

A localized string that represents the view this controller manages.

preferredContentSize

The preferred size for the view controller’s view.