- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
UINavigationController *HomeNav = [[UINavigationController alloc] initWithRootViewController:[[HomeController alloc] init]];
UINavigationController *LifeNav = [[UINavigationController alloc] initWithRootViewController:[[LifeController alloc] init]];
UINavigationController *InfoNav = [[UINavigationController alloc] initWithRootViewController:[[InfoController alloc] init]];
UINavigationController *BBSNav = [[UINavigationController alloc] initWithRootViewController:[[BBSController alloc] init]] ;
UINavigationController *MoreNav = [[UINavigationController alloc] initWithRootViewController:[[MoreController alloc] init]];
[HomeNav.navigationBar setTintColor:[UIColor clearColor]];
[LifeNav.navigationBar setTintColor:[UIColor clearColor]];
[InfoNav.navigationBar setTintColor:[UIColor clearColor]];
[BBSNav.navigationBar setTintColor:[UIColor clearColor]];
[MoreNav.navigationBar setTintColor:[UIColor clearColor]];
CustomTabBar *tabBar = [[CustomTabBar alloc] init];
tabBar.buttonImages = [NSArray arrayWithObjects:@"t1.png", @"t2.png", @"t3.png", @"t4.png", @"t5.png", nil];
tabBar.hightLightButtonImages = [NSArray arrayWithObjects:@"th1.png", @"th2.png", @"th3.png", @"th4.png", @"th5.png", nil];
tabBar.viewControllers = [NSArray arrayWithObjects:HomeNav, LifeNav, InfoNav, BBSNav, MoreNav, nil];
self.tabBarController = tabBar;
[tabBar release];
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
[SqliteSet OpenDataBase];
return YES;
}