I have this piece of code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if([[UINavigationBar class] respondsToSelector:@selector(appearance)]
{
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"bar-mid.png"] forBarMetrics:UIBarMetricsDefault];
}
//[[UINavigationBar appearance] setTintColor:[UIColor redColor]];
return YES;
}
It works If I try to set the TintColor to red (in the commented line of code), but If i try to set a background image it doesn't work! Yes, I have the "bar-mid.png" image in "Supporting Files > Images". I use storyboard. This is the result:
Can you help me? Thanks!