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?
Here you go:
MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
[self.navigationController presentViewController:mailer animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.