Created
April 5, 2010 15:51
-
-
Save ovenbits/356495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// roommateappAppDelegate.m | |
// roommateapp | |
// | |
// Created by Court Simas on 4/4/10. | |
// Copyright Court Simas 2010. All rights reserved. | |
// | |
#import "roommateappAppDelegate.h" | |
#import "RootViewController.h" | |
#import "CourtController.h" | |
@implementation roommateappAppDelegate | |
@synthesize window; | |
@synthesize tabBarController; | |
- (void)applicationDidFinishLaunching:(UIApplication *)application { | |
tabBarController = [[UITabBarController alloc] init]; | |
tabBarController.tabBar.alpha = .5; | |
RootViewController *rootViewController = [[RootViewController alloc] init]; | |
navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController]; | |
[rootViewController release]; | |
CourtController *courtController = [[CourtController alloc] init]; | |
[rootViewController.navigationController pushViewController:courtController animated:YES]; | |
[courtController release]; | |
navigationController.navigationBar.tintColor = [UIColor blackColor]; | |
[window addSubview:navigationController.view]; | |
tabBarController.viewControllers = [NSArray arrayWithObjects:rootViewController, courtController, nil]; | |
[window addSubview:tabBarController.view]; | |
[window makeKeyAndVisible]; | |
} | |
- (void)dealloc { | |
[window release]; | |
[super dealloc]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment