Skip to content

Instantly share code, notes, and snippets.

@ovenbits
Created April 5, 2010 15:51
Show Gist options
  • Save ovenbits/356495 to your computer and use it in GitHub Desktop.
Save ovenbits/356495 to your computer and use it in GitHub Desktop.
//
// 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