Instance Property


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


var isViewLoaded: Bool { get }


The value of this property is true when the view is in memory or false when it is not. Accessing this property does not attempt to load the view if it is not currently in memory.

See Also

Managing the View

var view: UIView!

The view that the controller manages.

var viewIfLoaded: UIView?

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

func loadView()

Creates the view that the controller manages.

func viewDidLoad()

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

func loadViewIfNeeded()

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

var title: String?

A localized string that represents the view this controller manages.

var preferredContentSize: CGSize

The preferred size for the view controller’s view.