Instance Property


The delegate of the app object.


unowned(unsafe) var delegate: UIApplicationDelegate? { get set }


Every app must have an app delegate object to respond to app-related messages. For example, the app notifies its delegate when the app finishes launching and when its foreground or background execution status changes. Similarly, app-related messages coming from the system are often routed to the app delegate for handling. Xcode provides an initial app delegate for every app and you should not need to change this delegate later.

The delegate must adopt the UIApplicationDelegate formal protocol.

See Also

Managing the App's Behavior

protocol UIApplicationDelegate

A set of methods that you use to manage shared behaviors for your app.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software