#import "AppTabAppDelegate.h"
@implementation AppTabAppDelegate
@synthesize window, listTableViewController, myInfoTableViewController;
- (void)applicationDidFinishLaunching (UIApplication *)application {
UITabBarController *tabBarController = [[UITabBarController alloc] init];
UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:listTableViewController] autorelease];
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:myInfoTableViewControll er] autorelease];
tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, nil];
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
- (void)dealloc {
[window release];
[listTableViewController release];
[myInfoTableViewController release];
[super release];
}
@end
@implementation AppTabAppDelegate
@synthesize window, listTableViewController, myInfoTableViewController;
- (void)applicationDidFinishLaunching (UIApplication *)application {
UITabBarController *tabBarController = [[UITabBarController alloc] init];
UINavigationController *tableNavController = [[[UINavigationController alloc] initWithRootViewController:listTableViewController] autorelease];
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:myInfoTableViewControll er] autorelease];
tabBarController.viewControllers = [NSArray arrayWithObjects:tableNavController, table2NavController, nil];
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
- (void)dealloc {
[window release];
[listTableViewController release];
[myInfoTableViewController release];
[super release];
}
@end