Method BriefdidFinishLaunchingWithOptions:(NSDictionary *)launchOptionsCalled only when the app is launched, the following launchoptions contains the parameters to launch the application from the outside, such as receiving a pick-up and clicking on the information contained in the push to open the app.
applicationWillResignActiveApplicationbackgroundBefore calling
applicationDidEnterBackgroundApplicationbackgroundCall
applicationWillEnterForegroundApplicationactiveBefore calling
applicationDidBeconeActiveApplicationactiveCall
applicationWillTerminateApplicationnot runingCalled before (Close)
Several common scenarios:
-
To launch an app:
-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
applicationDidBeconeActive
-
Within the app, click Home:
-
applicationWillResignActive
applicationDidEnterBackground
-
The app runs in the background and opens the app again:
-
applicationWillEnterForeground
applicationDidBeconeActive
-
Double-click Home to select the current app:
-
applicationWillResignActive
applicationDidBeconeActive
-
Double-click Home to select another app:
-
applicationWillResignActive
applicationDidEnterBackground
-
Double-click Home to close the app:
-
applicationWillResignActive
applicationDidEnterBackground
applicationWillTerminate
Appdelegate related states in several methods:1.not Running2.background3.active
the actual application of several states: (see "iOS app status switch off " http://blog.csdn.net/duanyipeng/article/details/7101829)
1.not Running2.background3.active4.inactive5.suspended
The methods inside the Appdelegate