Global Variable

UIApplicationDidBecomeActiveNotification

Posted when the app becomes active.

Declaration

const NSNotificationName UIApplicationDidBecomeActiveNotification;

Discussion

An app is active when it is receiving events. An active app can be said to have focus. It gains focus after being launched, loses focus when an overlay window pops up or when the device is locked, and gains focus when the device is unlocked.

See Also

Notifications

UIApplicationBackgroundRefreshStatusDidChangeNotification

Posted when the app’s status for downloading content in the background changes.

UIApplicationDidChangeStatusBarFrameNotification

Posted when the frame of the status bar changes.

UIApplicationDidChangeStatusBarOrientationNotification

Posted when the orientation of the app’s user interface changes.

UIApplicationDidEnterBackgroundNotification

Posted when the app enters the background.

UIApplicationDidFinishLaunchingNotification

Posted immediately after the app finishes launching.

UIApplicationDidReceiveMemoryWarningNotification

Posted when the app receives a warning from the operating system about low memory availability.

UIApplicationProtectedDataDidBecomeAvailable

Posted when the protected files become available for your code to access.

UIApplicationProtectedDataWillBecomeUnavailable

Posted shortly before protected files are locked down and become inaccessible.

UIApplicationSignificantTimeChangeNotification

Posted when there is a significant change in time, for example, change to a new day (midnight), carrier time update, and change to or from daylight savings time.

UIApplicationUserDidTakeScreenshotNotification

Posted when the user presses the Home and Lock buttons to take a screenshot.

UIApplicationWillChangeStatusBarOrientationNotification

Posted when the app is about to change the orientation of its interface.

UIApplicationWillChangeStatusBarFrameNotification

Posted when the app is about to change the frame of the status bar.

UIApplicationWillEnterForegroundNotification

Posted shortly before an app leaves the background state on its way to becoming the active app.

UIApplicationWillResignActiveNotification

Posted when the app is no longer active and loses focus.

UIApplicationWillTerminateNotification

Posted when the app is about to terminate.

UIContentSizeCategoryDidChangeNotification

Posted when the user changes the preferred content size setting.