AppDelegate Roles
suggest change- AppDelegate contains your app’s
startup code. - It responds to
key changesin thestateof your app. Specifically, it responds to both temporary interruptions and to changes in the execution state of your app, such as when your app transitions from the foreground to the background. - It
responds to notificationsoriginating from outside the app, such as remote notifications (also known as push notifications), low-memory warnings, download completion notifications, and more. - It
determineswhetherstate preservationandrestorationshould occur and assists in the preservation and restoration process as needed. - It
responds to eventsthat target the app itself and are not specific to your app’s views or view controllers. You can use it to store your app’s central data objects or any content that does not have an owning view controller.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents