0

I'm actually having the opposite problem of this and this StackOverflow question. The 'Cancel' and 'Send' buttons on my instance of MFMailComposeViewController are both transparent. I've attached screenshots to show this.

Cancel Button

Send Button

When I set up the instance of the MFMailComposeViewController, I don't have any code changing the color from the system default. How do I make sure that these buttons are the system default color?

Community
  • 1
  • 1
narner
  • 2,908
  • 3
  • 26
  • 63
  • Are you by any chance setting appearance options somewhere in your app? – Krumelur Jan 22 '15 at 18:53
  • Hi @Krumelur, as far as I can tell, just with the method below appears in the project (I've inherited it, so I'm not yet completely sure how the appearance has been set). - (void)updateStatusBarAppearance { if (IsIOS7()) [self setNeedsStatusBarAppearanceUpdate]; } – narner Jan 22 '15 at 19:00

1 Answers1

0

As @Krumelur suggested, the appearance options were being set somewhere else in my app. The solution to override these options was to insert the following line in the method where the instance of MFMailComposeViewController was initialized:

mailComposer.navigationBar.tintColor = [UIColor blackColor];
narner
  • 2,908
  • 3
  • 26
  • 63