title: UINavigationBar with solid color iOS 5
body: <p>I'm using the category to customize nav bar. My code is: </p>
  
  <pre><code>- (void) drawRect:(CGRect)rect {
      CGContextRef context = UIGraphicsGetCurrentContext();
      CGContextSetFillColor(context, CGColorGetComponents([self.tintColor CGColor]));
      CGContextFillRect(context, rect);
  }
  </code></pre>
  
  <p>It works well, but not in iOS 5. I need nav bar color to be solid without any gradient. How should I do this?</p>
  
  <p>As I know, for iOS 5 the only way to replace <code>drawRect</code> method is to make a subclass, but is there any way to make all navigation controllers to use <code>UINavigationBar</code> subclass instead of original class?</p>