[英]How do I make MFMailComposeViewController's status bar have white text (LightContent)?
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. 在我的MFMailComposeViewController
我将所有样式设置为遵循我的应用程序的外观和风格,但是无论出于什么原因,尽管我的状态栏在我的应用程序中到处都有白色内容,但当MFMailComposeViewController
打开时,它将变成黑色。
Is it possible to change the MFMailComposeViewController
's status bar to light content? 是否可以将MFMailComposeViewController
的状态栏更改为轻内容?
Here you go: 干得好:
MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
[self.navigationController presentViewController:mailer animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.