My app has a custom background for the navigation bar. So i made a category like this
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"image.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
In my app I have to use MFMailComposeViewController. I create it like
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
But Apple's docs state that
Important The mail composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is not allowed to make further changes to the email content. The user may still edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields before presenting the interface.
So this mean I can't keep my "image.png" as the navigation bar background for the mail composer view controller.
How one can accomplish this?
Thanks