In my App Delegate I have the following code, but it stays completely dark above the navigation bar, where you can't see anything. If I remove the background image for the navigation bar, it properly shows it as light content, but I'm not sure what would be blocking it when present. The background image for UINavigationBar is 320x44.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIImage *theBackground = [[UIImage imageNamed:@"navbar.png"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];;
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) {
// Load resources for iOS 6.1 or earlier
// UIColor *purple = UIColorFromRGB(0x95cdde);
[[UINavigationBar appearance] setBackgroundImage:theBackground forBarMetrics:UIBarMetricsDefault];
} else {
// Load resources for iOS 7 or later
// UIColor *purple = UIColorFromRGB(0x95cdde);
[[UINavigationBar appearance] setBackgroundImage:theBackground forBarMetrics:UIBarMetricsDefault];
}
window.rootViewController = tabBarController;
[window makeKeyAndVisible];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
return YES;
}
Here is the navigation bar image