I have in-app email using the MessageUI Framework. Everything works fine with the MFMailComposeViewController, but I want to change the title color from black to white. As of now, it looks like this:
I also want to change the bar button items to white. I was able to achieve all of this with all of my other views, but I simply don't know how to do this with an MFMailComposeViewController.
Set Title Text Attributes Of Navigation Bar in MFMailComposeViewController
MFMailComposeViewController *mailVc = [[MFMailComposeViewController alloc] init];
mailVc.mailComposeDelegate = self;
[[mailVc navigationBar] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]];
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.