-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions{
Returnyes;
}//program initiated into action--initialize SDK, determine root view operation, etc.
-(void) Applicationwillresignactive: (uiapplication *) application{
}//the action that the application loses focus to perform
-(void) Applicationdidenterbackground: (uiapplication *) application{
}//the application goes into the background----record the page where the background is located
-(void) Applicationdidenterbackground: (uiapplication *) application{
The}//program enters the foreground to perform the operation----Record page verification gesture password and fingerprint password in the application window popup, disappear processing and other issues
-(void) Applicationdidbecomeactive: (uiapplication *) Application {
Restart any tasks this were paused (or not yet started) while the application is inactive. If the application is previously in the background, optionally refresh the user interface.
}//The program is already in focus
-(void) Applicationwillterminate: (uiapplication *) Application {
Called when the application are about to terminate. Save data if appropriate. See also Applicationdidenterbackground:.
}//the operation that the program was terminated
This can be analogous to the life cycle of the view, in the defined time period of processing from the view launch to the view of the destruction process to understand the comparison, to perform the corresponding operation.
Several stages of iOS apps