我一直在这个网站和其他地方寻找如何设置导航栏的颜色变化,我看到了一些例子,但并不完全符合我的需求,所以任何帮助都将不胜感激。
在我的应用程序代理中,我有:
@synthesize window;
@synthesize tabBarController;
@synthesize navigationController;
@synthesize navigationController1;
@synthesize navigationController2;
@synthesize viewController;
@synthesize viewController2;
@synthesize viewController3;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Set the tab bar controller as the window's root view controller and display.
self.window.rootViewController = self.tabBarController;
[self.window makeKeyAndVisible];
return YES;
}
当我输入上述代码
self.navigationController.navigationBar setTintColor:[UIColor blackColor]
时,它只会更改一个导航控制器而不是我需要更改的那个。我的选项卡栏有7个项目,当我按下“更多…”时,我会得到一个表视图,其中显示不能放在主屏幕上的其他项目,导航栏会自动添加。无论我做什么,都无法更改此导航栏色调,我可以更改那些我有
@synthesize
但无法更改自动输入的那个。请问有人知道如何更改自动放置的导航栏吗?