Instance Method


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


- (void)viewDidLoad;


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


The view that the controller manages.


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


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.


A localized string that represents the view this controller manages.


The preferred size for the view controller’s view.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software