Preventing Customization of MFMailComposeViewController Background Image
===

Currently we are using this block of code that customizes the UINavigationBar background image throughout our app:

    @implementation UINavigationBar(MyExtensions)
    
    - (UIImage *)barBackground {
        return [UIImage imageNamed:@"GlobalTitleBackground.png"];
    }
    
    - (void)didMoveToSuperview {
        //iOS5 only
        if ([self respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)])
        {
            [self setBackgroundImage:[self barBackground] forBarMetrics:UIBarMetricsDefault];
        }
    }
    
    //this doesn't work on iOS5 but is needed for iOS4 and earlier
    - (void)drawRect:(CGRect)rect {
        //draw image
        [[self barBackground] drawInRect:rect];
    }
    
    @end


In general, this works great. The problem I'm encountering is that when I create a MFMailComposeViewController, it's background also gets customized.

Therefore, is it possible, given the code that I have right now, to do the customization on all UINavigationBars **except the UINavigationBar created by the MFMailComposeViewController**?

Thanks in advance!