2

In my MFMailComposeViewController I have everything styled to follow the look and feel of my application, but for whatever reason despite my status bar having white content everywhere in my app, when the MFMailComposeViewController opens it turns it black.

Is it possible to change the MFMailComposeViewController's status bar to light content?

  • Its probably set the by its Navigation Controller and Nav Bar - poke around n the APIs. You can probably find a way to reference it and set it. – David H Nov 02 '13 at 02:18
  • Maybe this helps: http://stackoverflow.com/questions/18945390/mfmailcomposeviewcontroller-in-ios-7-statusbar-are-black – Endanke Nov 04 '13 at 12:44

1 Answers1

5

Here you go:

MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
[self.navigationController presentViewController:mailer animated:YES completion:^{
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
Vahan
  • 2,106
  • 18
  • 17