有一個的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