Methods In AppDelegate, and AppDelegate Methods
Method OverviewdidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsIt is called only when the application is started. The launchOptions below contains parameters when the application is started from outside. If you receive the transfer, click push to open the application.
applicationWillResignActiveApplicationbackgroundBefore calling
applicationDidEnterBackgroundApplicationbackgroundCall
applicationWillEnterForegroundApplicationactiveBefore calling
applicationDidBeconeActiveApplicationactiveCall
applicationWillTerminateApplicationnot runingCalled before (closed)
Common scenarios:
Start the application:
-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
applicationDidBeconeActive
Click home in the application:
-
applicationWillResignActive
applicationDidEnterBackground
The application runs in the background and opens the application again:
-
applicationWillEnterForeground
applicationDidBeconeActive
Double-click home to select the current application:
-
applicationWillResignActive
applicationDidBeconeActive
Double-click home to select another application:
-
applicationWillResignActive
applicationDidEnterBackground
Double-click home to close the application:
-
applicationWillResignActive
applicationDidEnterBackground
applicationWillTerminate
Status related to several methods in AppDelegate: 1.not running2.background3. active
The actual application status: (see the iOS Application Status switch off http://blog.csdn.net/duanyipeng/article/details/7101829)
1. not running2.background3. active4.inactive5. suincluded