hello
I want to create a splashscreen which after that a tabbarController appears.This tabBarController has 4 items.3 navigationsController and the last one is a TableView.
i didn´t know how to load the splash screen i have done at the first time like that:
(void)applicationDidFinishLaunching:(UIApplication *)application {
tabBarController = [[UITabBarController alloc] init];
// creer le tabcontroller pour les news
newsViewController = [[NewsViewController alloc] init];
UINavigationController *table1NavController = [[[UINavigationController alloc] initWithRootViewController:newsViewController] autorelease];
[newsViewController release];
[table1NavController setNavigationBarHidden:TRUE];
// creer le viewcontroller pour les parametres
parametresViewController = [[ParametresViewController alloc] init];
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:parametresViewController] autorelease];
table2NavController.title = @"Mes Parametres";
[parametresViewController release];
[table2NavController setNavigationBarHidden:TRUE];
// creer le viewcontroller pour les reclamations
reclamationsViewController = [[ReclamationsViewController alloc] init];
UINavigationController *table3NavController = [[[UINavigationController alloc] initWithRootViewController:reclamationsViewController] autorelease];
table3NavController.title = @"Mes Reclamations";
[reclamationsViewController release];
[table3NavController setNavigationBarHidden:TRUE];
// creer le viewcontroller pour les factures
facturesViewController = [[FacturesViewController alloc] init];
UINavigationController *table4NavController = [[[UINavigationController alloc]
initWithRootViewController:facturesViewController] autorelease];
table4NavController.title = @"Mes Factures";
[facturesViewController release];
[table4NavController setNavigationBarHidden:TRUE];
tabBarController.viewControllers = [NSArray arrayWithObjects:table1NavController, table2NavController, table3NavController, table4NavController, nil];
[window addSubview:tabBarController.view];
[window makeKeyAndVisible]; }