I have a code in the AppDelegate.m that sets all UINavigationBar hex colors to #125687
Code from the AppDelegate.m
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x125687)];
Here's the issue: I put two UINavigationBars on top of each other in the viewcontroller so the UINavigationBar goes under the status bar. The navigation bar under the status bar is below the main navigatonbar. The second navigation bar has a different color from the main one.
Here's what it looks like:
(The second navigation bar is the navigation bar that has a lighter color that the bar with the title "Community")
Question: How can I fix it so both UINavigationBars have the same hex color (#125687)?