//called when the application is finished (automatically called by the system)-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchoptions;//called when it is about to lose its active state (loses focus, cannot interact)-(void) Applicationwillresignactive: (UIApplication *) Application;//regain focus (ability to interact with users)-(void) Applicationdidbecomeactive: (UIApplication *) Application; //when the application enters the background, the application's data is typically stored in the method, and the state- (void) Applicationdidenterbackground: (UIApplication *) Application;//called when the application is about to enter the foreground, typically recovering the application's data in this method, as well as the state- (void) Applicationwillenterforeground: (UIApplication *) Application;//This method is called when the application is about to be destroyed, note that the method cannot be called if the application is in a suspended state- (void) Applicationwillterminate: (UIApplication *) Application;//when an application receives a memory warning, it is called, typically releasing unwanted memory in the method- (void) Applicationdidreceivememorywarning: (uiapplication *) application;
Analysis of methods in Appdelegate