简体   繁体   English

如何使MFMailComposeViewController的状态栏具有白色文本(LightContent)?

[英]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.

相关问题 如何在MFMailComposeViewController中将状态栏更改为White? - How to change status bar to White in MFMailComposeViewController? 白色透明工具栏,如何使状态栏匹配 - White transparent toolbar, how do I make status bar match 如何使iPhone X上的状态栏变成纯白色? - How do I make the status bar on iPhone X solid white? 如何使MFMailComposeViewController不显示状态栏? - How to make MFMailComposeViewController not show the status bar? 将状态栏颜色放入LightContent - Put status Bar Color in LightContent 在VIPER项目中启用lightContent状态栏样式 - Enabling lightContent status bar style in a VIPER project iOS 12.0:有没有办法将 MFMailComposeViewController 导航栏标题的文本设置为白色? - iOS 12.0 : Is there a way to set MFMailComposeViewController navigation bar title's text to white? 状态栏未显示在mfmailcomposeviewcontroller中 - Status bar is not displaying in mfmailcomposeviewcontroller 如何在 MoreTabBarController 中将 UIStatusBar 颜色更改为 .lightContent - How do I change the UIStatusBar color to .lightContent in the MoreTabBarController 如何让我的iPhone启动图像使用用户的状态栏? - How do I make my launch images for iPhone use the user's status bar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM