Skip to content

Instantly share code, notes, and snippets.

@soffes
Forked from ovenbits/gist:356495
Created April 5, 2010 15:52
Show Gist options
  • Save soffes/356498 to your computer and use it in GitHub Desktop.
Save soffes/356498 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;
CourtController *courtController = [[CourtController alloc] init];
navigationController = [[UINavigationController alloc] initWithRootViewController:courtController];
[courtController release];
navigationController.navigationBar.tintColor = [UIColor blackColor];
[window addSubview:navigationController.view];
tabBarController.viewControllers = [NSArray arrayWithObjects:navigationController, 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