gpt4 book ai didi

ios - 如何更改 MFMailComposeViewController 的标题颜色?

转载 作者:搜寻专家 更新时间:2023-10-31 22:07:39 26 4
gpt4 key购买 nike

我有使用 MessageUI 框架的应用内电子邮件。 MFMailComposeViewController 一切正常,但我想将标题颜色从黑色更改为白色。截至目前,它看起来像这样:enter image description here

我还想将栏按钮项更改为白色。我能够通过我的所有其他 View 实现所有这些,但我只是不知道如何使用 MFMailComposeViewController 来实现。

最佳答案

MFMailComposeViewController中设置导航栏的标题文本属性

MFMailComposeViewController *mailVc = [[MFMailComposeViewController alloc] init];
mailVc.mailComposeDelegate = self;
[[mailVc navigationBar] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]];

关于ios - 如何更改 MFMailComposeViewController 的标题颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31911270/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com