title: UINavigationBar - Setting background image?
body: <p>So I have a category for UINavigationController and I override the init method as below</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame
  {
      if (self = [super initWithFrame:frame])
      {
              UIImage *image = [UIImage imageNamed:@"navBar.png"];
              [[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];      
      }
  
          return self;
  }
  </code></pre>
  
  <p>The following code causes the background image of the navigation bar to become blank (white).
  The image name is correct and it exists within the project. Any idea what is causing this problem?</p>