Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (40 sloc) 1.447 kb
//
// AppDelegate.m
// GMGridView
//
// Created by Gulam Moledina on 11-10-09.
// Copyright (c) 2011 GMoledina.ca. All rights reserved.
//
#import "AppDelegate.h"
#import "Demo1ViewController.h"
#import "Demo2ViewController.h"
@implementation AppDelegate
@synthesize window = _window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UITabBarController *tabBarController = [[UITabBarController alloc] init];
[tabBarController setViewControllers:[NSArray arrayWithObjects:
[[UINavigationController alloc] initWithRootViewController:[[Demo1ViewController alloc] init]],
[[UINavigationController alloc] initWithRootViewController:[[Demo2ViewController alloc] init]],
nil]];
self.window.rootViewController = tabBarController;
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
}
- (void)applicationWillTerminate:(UIApplication *)application
{
}
@end
Jump to Line
Something went wrong with that request. Please try again.