Issues With Customizing Color Of NavigationController
Hi there!
I´m working on a project using Tab Bars and Storyboards.
In my tab bar application i have been trying to program different things, everything from making the tab bars save when application terminates, creating actionsheet popup when one of the tabs are pressed, but everything ends with nothing happening… Even when i try to change the color of the navigation bar in the "more" tab in the tab bar controller, it don´t work...
I guess there must be something that i am doing wrong, something that is not implemented the right way or something… But i know one thing, that i really need some help.
I will take an example when it comes to changing the color of the navigation bar in the "more" tab in the tab bar controller.
I have first in the AppDelegate.h done this.
@interface AppDelegate : UIResponder <UIApplicationDelegate, UINavigationControllerDelegate, UITabBarControllerDelegate>
{
UIWindow *window;
}
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UITabBarController *mytab;
@end
Then in the implementation file AppDelegate.m i have done the following
#import "AppDelegate.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize mytab;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
mytab.moreNavigationController.navigationBar.tintColor = [UIColor orangeColor];
// Override point for customization after application launch.
return YES;
}
When I do this i get no error messages, no issues, nothing that indicates that something is wrong. The application is running just as it should, except that the "more" navigation bar color is not changed…
Please help me with this, Im basically stuck with everything right now due to these problems. Keep in mind that i´m using Storyboards with the Tab Bar starting template.
Cheers
iPhone 4S, iOS 5.1