1#import "AppDelegate.h" 2 3@interface AppDelegate () 4 5@end 6 7@implementation AppDelegate 8 9- (BOOL)application:(UIApplication *)application 10 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 11 // Override point for customization after application launch. 12 return YES; 13} 14 15- (void)applicationWillResignActive:(UIApplication *)application { 16 // Sent when the application is about to move from active to inactive state. This can occur for 17 // certain types of temporary interruptions (such as an incoming phone call or SMS message) or 18 // when the user quits the application and it begins the transition to the background state. Use 19 // this method to pause ongoing tasks, disable timers, and invalidate graphics rendering 20 // callbacks. Games should use this method to pause the game. 21} 22 23- (void)applicationDidEnterBackground:(UIApplication *)application { 24 // Use this method to release shared resources, save user data, invalidate timers, and store 25 // enough application state information to restore your application to its current state in case 26 // it is terminated later. If your application supports background execution, this method is 27 // called instead of applicationWillTerminate: when the user quits. 28} 29 30- (void)applicationWillEnterForeground:(UIApplication *)application { 31 // Called as part of the transition from the background to the active state; here you can undo 32 // many of the changes made on entering the background. 33} 34 35- (void)applicationDidBecomeActive:(UIApplication *)application { 36 // Restart any tasks that were paused (or not yet started) while the application was inactive. If 37 // the application was previously in the background, optionally refresh the user interface. 38} 39 40- (void)applicationWillTerminate:(UIApplication *)application { 41 // Called when the application is about to terminate. Save data if appropriate. See also 42 // applicationDidEnterBackground:. 43} 44 45@end 46