I have a simple UITextView
with an email link in it. The textview is selectable and detects links. This way, you can click on the email and it opens modally an MFMailComposeViewController
view controller.
But, I do some customization at the launch of the app :
[[UINavigationBar appearance] setBarTintColor: myGreyColor];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: myFont}];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
This way, all navigation bars are grey, with white text and white buttons, and the title has a custom font.
My problem is that all these are not applied to the mail composer : the bar is grey and the title is white, but the font is the default helvetica neue and the buttons are the default blue. And, the status bar is black, even though my Info.plist says UIStatusBarStyleLightContent
and View controller-based status bar appearance
is set to NO
.
I know how to customize MFMailComposeViewController
when I call it manually, but here it pops up automatically. How can I have my styles applied to it ?