title: Custom background for UINavigationBar in landscape mode
body: <p>I am adding a custom background for my UINavigationBar. It works fine as long as the phone is in portrait mode. As soon as I switch to landscape mode, half the bar appears blue (the default navbar color) and half of it has my image</p>
  
  <p>How can I stretch the image for landscape mode and make it small again for portrait mode?</p>
  
  <p>Thanks</p>
  
  <p><strong><em>Solution</em></strong><br/>
  Incase anyone is looking for an answer to how to add an image to navigation bar - here goes</p>
  
  <pre><code>UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 480.0, 44.0)];
  [imgView setImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"navbar_landscape" ofType:@"png"]]];
  [navigationController.navigationBar addSubview:imgView];
  [imgView release];
  </code></pre>