2010-11-23 5 views
0

j'ai lu à travers tout le forum im peut-être faire quelque chose de mal toute aide serait grandepersonnalisation navigationController.navigationBar.barStyle

tabController = [[UITabBarController alloc] init]; tabController.delegate = self; [tabController setViewControllers: [NSArray arrayWithObjects: // [[[UINavigationController alloc] initWithRootViewController: [[[SearchTableViewController alloc] init] autorelease]] autorelease], // [[[UINavigationController alloc] initWithRootViewController: [[[SearchPhotosViewController alloc] autorelease]] autorelease], // [[[allocation UINavigationController] initWithRootViewController: [[[SearchPhotosViewController alloc] init] autorelease]] libération automatique], // [[[UINavigationController alloc] initWithRootViewController: [[[SearchPhotosViewController2 alloc] autorelease]] autorelease], [[[allocation UINavigationController] initWithRootViewController: [[[crap2 alloc] init] autorelease]] libération automatique], [[[UINavigationController alloc] dans itWithRootViewController: [[[crap3 alloc] init] autorelease]] libération automatique], [[[UINavigationController alloc] initWithRootViewController: [[[crap alloc] init] autorelease]] libération automatique], néant]]; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

//tabController.navigationController.navigationBar.barStyle = UIBarStyleBlack; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; tabController.navigationController.navigationBar.barStyle = UIBarStyleBlack; [fenêtre addSubview: [vue tabController]];

Répondre

0

Pour NavigationController, essayez:

self.navigationController.navigationBar.barStyle = UIBarStyleBlack; 

Pour une barre d'outils, essayez:

[toolbar setTintColor:[UIColor blackColor]]; 
+0

je l'ai essayé. Je reçois demande de membre 'navigationController' dans quelque chose pas une structure ou union ive également essayé dans les fichiers individuels m: self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; mais malheureusement, rien ne se passe – geckus

+0

Êtes-vous sûr de ne pas avoir de barre d'outils à la place d'un contrôleur de navigation? – WrightsCS

+0

Hmmmm ... Si je le fais, comment puis-je changer cela en noir? – geckus