Instance Method

loadViewIfNeeded

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

Declaration

- (void)loadViewIfNeeded;

Discussion

Calling this method loads the view controller’s view from its storyboard file, or creates the view as needed based on the established rules.

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.

- viewDidLoad

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

title

A localized string that represents the view this controller manages.

preferredContentSize

The preferred size for the view controller’s view.