Seems for iOS 8.3 the navigation bar background color for MFMailComposeViewController is white no matter what I do. How do I change the background color properly? Here is the code I am using. Simple and straight forward.
MFMailComposeViewController* myMailViewController = [[MFMailComposeViewController alloc] init];
myMailViewController.mailComposeDelegate = self;
[myMailViewController.navigationBar setBackgroundColor:[UIColor orangeColor]];
[self presentViewController:myMailViewController animated:YES completion:nil];
I tried many other alternatives such as changing the tint of the navigation bar, but I am getting the same result. Is this a bug? Any suggestions or tips is appreciated.
[UINavigationBar appearance].barTintColor = [UIColor yourColor];
This should be called before MFMailComposer instantiation.