有一个的UITabBarController如何更改UITabbarViewController的navigationBar的颜色?
- (void)getToMCGatherViewController
{
mCGatherViewController = [[MCGatherViewController alloc] initWithNibName:@"MCGatherViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:mCGatherViewController];
navigationController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:navigationController animated:YES];
[navigationController release];
}
在.h文件:
@interface MCGatherViewController : UITabBarController
在.m文件。我想改变视图的导航条的颜色条形码
- (void)viewDidLoad
{
[super viewDidLoad];
self.navigationController.navigationBar.tintColor=[UIColor greenColor];
}
它根本不起作用。
帮我解决这个问题,提前谢谢!
你的问题很复杂,请澄清你想要什么? – vishiphone