MFMailComposeViewController appearance setTintColor getting lost iOS 7

后端 未结 1 1078
抹茶落季
抹茶落季 2021-01-19 13:31

This question is for Xcode 5 running iOS 7 and is super weird. I am trying to set all the UInavigation and UIBarButtonItem text colors to white.

So in my app launch

相关标签:
1条回答
  • 2021-01-19 13:57

    I had to do it this way in order for it to work on iOS 7

    if ([MFMailComposeViewController canSendMail])
        {
    
            MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
            mailViewController.mailComposeDelegate = self;
    
            [mailViewController.navigationBar setTintColor:[UIColor whiteColor]];
            [mailViewController.navigationBar setBarTintColor:[UIColor whiteColor]];
    
    ....
    
    0 讨论(0)
提交回复
热议问题