I use this code to set the background. It do change the background, but there is some problem with Retina.
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navi_bar.png"] forBarMetrics:UIBarMetricsDefault];
I have two pngs: navi_bar.png (320*44) and navi_bar@2x.png (640*88)
The background of navigation bar always uses image navi_bar.png, even in Retina.
If I use this code:
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navi_bar@2x.png"] forBarMetrics:UIBarMetricsDefault];
The result is this in Retina:
The background has the double height...
I have spent the whole morning on this problem. Can anybody help me? Thanks!