Description: parameters of the application, within which a data grid is created.
@class ViewController; @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; // Application window @property (strong, nonatomic) ViewController *viewController; // View manager @end
#import "AppDelegate.h" @implementation AppDelegate - (void)dealloc { [_window release]; [_viewController release]; [super dealloc]; } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Create an application window self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Create a view manager self.viewController = [[[ViewController alloc] init] autorelease]; self.window.rootViewController = self.viewController; // Display application window with table [self.window makeKeyAndVisible]; return YES; } @end
See also: