//called when the application is finished (automatically called by the system)-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchoptions{//Override point for customization after application launch.NSLog (@"didfinishlaunchingwithoptions"); returnYES;}//called when it is about to lose its active state (loses focus, cannot interact)- (void) Applicationwillresignactive: (UIApplication *) application{NSLog (@"resignactive");}//regain focus (ability to interact with users)- (void) Applicationdidbecomeactive: (UIApplication *) application{NSLog (@"becomeactive");}//called when the application enters the background//The application's data is typically stored in this method, as well as the state- (void) Applicationdidenterbackground: (UIApplication *) application{NSLog (@"Background");}//called when the application is about to enter the foreground//typically restores the application's data in this method, as well as the state- (void) Applicationwillenterforeground: (UIApplication *) application{NSLog (@"Foreground");}//This method is called when the application is about to be destroyed//Note: This method cannot be called if the application is in a suspended state- (void) Applicationwillterminate: (UIApplication *) application{}//when the application receives a memory warning, it calls the//It is common to release unwanted memory in this method- (void) Applicationdidreceivememorywarning: (UIApplication *) application{NSLog (@"memorywarning");}
IOS Appdelegate Common methods