title: How to change UINavigationController background color?
body: <p>I'm able to change the backgroung image of <code>UINavigationController</code> by overriding drawRect: method:</p>
  
  <pre><code>@implementation UINavigationBar (UINavigationBarCategory)
  
  - (void)drawRect:(CGRect)rect {
  
      UIImage *img  = [UIImage imageNamed: @"navController.png"];
      [img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
          self.tintColor = [UIColor blueColor];
  }
  
  @end
  </code></pre>
  
  <p>the background is what I intended to be and the <code>tintColor</code> as well, but when trying to set a color that isn't existing in <code>UIColor</code> class it fails and shows strange color: </p>
  
  <pre><code>@implementation UINavigationBar (UINavigationBarCategory)
  
  - (void)drawRect:(CGRect)rect {
  
      UIImage *img  = [UIImage imageNamed: @"navController.png"];
      [img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
          self.tintColor = [UIColor colorWithRed:(26/255) green:(103/255) blue:(159/255)                      alpha:1];
  }
  
  @end
  </code></pre>
  
  <p>How can I force <code>UINavigationBar</code> to show the color I want? </p>
  
  <p><strong>Note:</strong> I'm only having a problem with navigation controller buttons color since the background itself is set to image.</p>