title: Custom UINavigationbar for different views - iPhone SDK
body: <p>I have implemented a custom UINavigationbar using this code (placed in the top of my AppDelegate.m file):</p>
  
  <pre><code>@implementation UINavigationBar (CustomImage)
  - (void)drawRect:(CGRect)rect {
      UIImage *image = [UIImage imageNamed: @"NavigationBar.png"];
      [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
  }
  @end
  </code></pre>
  
  <p>And it works great! The problem is, when I push a particular class of view controller, I would like to remove the custom navigationbar and show the standard one (or alternatively change the NavigationBar.png).  </p>
  
  <p>But I can't figure out how to do this, and googling isn't really helping.
  Has anyone done this?</p>
  
  <p>Many thanks,
  Brett  </p>