Description: parameters of the application, within which a chart is created.
@class ViewController; @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) ViewController *viewController; @end
#import "AppDelegate.h" #import "ViewController.h" @implementation AppDelegate @synthesize window=_window; - (void)dealloc { [_window release]; [_viewController release]; [super dealloc]; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; self.viewController = [[[ViewController alloc] init] autorelease]; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; } - (void)applicationWillResignActive:(UIApplication *)application { /* Called if application is about to switch from active to inactive state. This may occur at specific types of time breaks (for example, incoming call or SMS), or if a user leaves the application, and it turns to background mode. Use this method to pause current tasks, disable timers, and so on. */ } - (void)applicationDidEnterBackground:(UIApplication *)application { /* use this method to free common resources, save user data, reset timers and store information about application status that is sufficient for its further restore. If your application supports backgrounding, this method is called instead of applicationWillTerminate:, when a user stops work. */ } - (void)applicationWillEnterForeground:(UIApplication *)application { /* Called as part of transition from inactive to active state; this method can be used to cancel many changes executed on transition to background mode. */ } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart all the paused tasks (or not started tasks) while the application was inactive. If the application was in the background mode, user interface refresh is available. */ } - (void)applicationWillTerminate:(UIApplication *)application { /* Called if application is about to close. Save data if required. See. also: applicationDidEnterBackground:. */ } @end
See also: