Reh*_*ani 3 iphone ios swift mfmailcomposeviewcontroller
我有使用MessageUI Framework的应用内电子邮件.MFMailComposeViewController一切正常,但我想将标题颜色从黑色更改为白色.截至目前,它看起来像这样:
我还想将条形按钮项更改为白色.我能够通过所有其他视图实现所有这些功能,但我根本不知道如何使用MFMailComposeViewController执行此操作.
设置导航栏的标题文本属性 MFMailComposeViewController
MFMailComposeViewController *mailVc = [[MFMailComposeViewController alloc] init];
mailVc.mailComposeDelegate = self;
[[mailVc navigationBar] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1311 次 |
| 最近记录: |