title: How can I add navigationbar background image to MFMailComposeViewController on ios7
body: <p>I am using MFMailComposeViewController.I can't add navigationBar background image to MFMailComposeViewController on ios7.My Code working ios7 before .But doesn't work on ios7.How can I add navigationbar background image to MFMailComposeViewController on ios7? </p>
  
  <pre><code>    MFMailComposeViewController *mailCompose = [[MFMailComposeViewController alloc] init];
      mailCompose.mailComposeDelegate = self;
      [mailCompose setSubject:@"SubjectName"];
      [mailCompose setMessageBody:shareBodyString isHTML:NO];
      if ([self respondsToSelector:@selector(presentViewController:animated:completion:)])
      {
        [self presentViewController:mailCompose animated:YES completion:nil];
      } 
      else {
           [self presentModalViewController:mailCompose animated:YES];
      }
  
      [mailCompose.topViewController.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"navigationbar-background.png"] forBarMetrics:UIBarMetricsDefault];  // working before ios7 
  </code></pre>