Returns an initialized interface controller object.



Return Value

The initialized interface controller object.


This method is the designated initializer for interface controller objects. Override this method as needed and use it to prepare your interface controller for use. In your implementation, call super first and then perform your own initialization.

In a page-based interface, all interface controllers are initialized up front but only the first one is displayed initially. The others are not displayed until the user navigates to the corresponding page. If your interface controller displays information that can change between initialization and the display of the page, use the willActivate() method to refresh your content. Use the didAppear() method to start animations or perform tasks that should wait until the interface appears onscreen.

See Also

Initializing the Interface Controller

func awake(withContext: Any?)

Initializes the interface controller with the specified context data.