I'm trying to change my navbar's background with the code:
- (void)viewDidLoad
{
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"header_bg_smooth.png"] forBarMetrics:UIBarMetricsDefault];
[super viewDidLoad];
...
}
It works, but the problem I'm having is that the change first takes effect when you go BACK the the view where this code is located. So it you go to this view the navbar is not changed but if you go further and then go back to this view the changes take effect.
Does anyone have any clue what the issue might be?
Thanks in advance