天天看点

UIApplicationDidEnterBackgroundNotification

UIApplicationDidEnterBackgroundNotification

Posted when the app enters the background.

The object of the notification is the UIApplication object. There is no userInfo dictionary.

Declaration

SWIFT

let UIApplicationDidEnterBackgroundNotification: String

Import Statement

OBJECTIVE-C

@import UIKit;

SWIFT

import UIKit

Availability

Available in iOS 4.0 and later.

其它的 Notifications:

UIApplicationBackgroundRefreshStatusDidChangeNotification

UIApplicationDidBecomeActiveNotification

UIApplicationDidChangeStatusBarFrameNotification

UIApplicationDidChangeStatusBarOrientationNotification

UIApplicationDidEnterBackgroundNotification

UIApplicationDidFinishLaunchingNotification

UIApplicationDidReceiveMemoryWarningNotification

UIApplicationProtectedDataDidBecomeAvailable

UIApplicationProtectedDataWillBecomeUnavailable

UIApplicationSignificantTimeChangeNotification

UIApplicationUserDidTakeScreenshotNotification

UIApplicationWillChangeStatusBarOrientationNotification

UIApplicationWillChangeStatusBarFrameNotification

UIApplicationWillEnterForegroundNotification

UIApplicationWillResignActiveNotification

UIApplicationWillTerminateNotification

UIContentSizeCategoryDidChangeNotification