title: Problem with custom UINavigationBar for MFMailComposeViewController
body: <p>I have customize my UINavigationBar with UINavigationBar drawRect and it is working fine until I fire up MFMailComposeViewController, which gives me a trouble as I couldn't override UIBarButton for the mail class, it create akward view like below:</p>
  
  <p><img src="https://i.stack.imgur.com/fajHb.png" alt="enter image description here"></p>
  
  <p>While I try to prevent the <code>MFMailComposeViewController</code> and produce code below for using the default drawRect for <code>MFMailComposeViewController</code>, it even worse it create a black <code>UIBar</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/0rkx1.png" alt="enter image description here"></p>
  
  <p>The Code:</p>
  
  <pre><code>@implementation UINavigationBar (CustomImage)
  - (void)drawRect:(CGRect)rect {
  
  
      //Prevent Mail Controller For Customizing NavigationBar
      for (UIView* next = [self superview]; next; next = next.superview) {
          UIResponder* nextResponder = [next nextResponder];
          if ([nextResponder isKindOfClass:[MFMailComposeViewController class]]) {
              [super drawRect:rect];
              return;
          }
      }
  
      UIImage *image = [UIImage imageNamed: @"titleBar.png"];
      [image drawInRect:CGRectMake(0, 0, 320, 44)];   
  
  }
  @end
  </code></pre>
  
  <p>What I am trying to do here is to make sure <code>MFMailComposeViewController</code> having the same style of <code>UINavigationBar</code> and <code>UIButtonItem</code>. It can be either way:</p>
  
  <p>1) Both <code>UINavigationBar</code> and <code>UIButtonItem</code> have customized background</p>
  
  <p>2) Default <code>UINavigationBar</code> style (gradient blue)</p>
  
  <p>Would like to know can I achieve this? Thanks in advance.</p>