Instance Property

viewIfLoaded

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

Declaration

@property(nonatomic, readonly, strong) UIView *viewIfLoaded;

Discussion

If the view controller’s view has already been loaded, this property contains that view. If the view has not yet been loaded, this property is set to nil.

See Also

Managing the View

view

The view that the controller manages.

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.

- 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.