Contents

loadViewIfNeeded()

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

Declaration

func 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