I am trying to set the shadowImage of the navigaion bar in my app delegate:
[[UINavigationBar appearance]setShadowImage:[UIImage imageNamed:@"navigation-bar-shadow"]];
This does not work by itself. It only works if I set the background image of the navigaion bar as well:
[[UINavigationBar appearance]setBackgroundImage:[UIImage new]forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
Here is my problem... the navigation bar is transluncent and I would like to keep it that way (no background images). But it seems that I cant set the shadowImage without setting the background image.
How can I set the shadowImage on translucent navigation bar?
Thanks!