Я пытаюсь изменить цвет текста для кнопок навигации в MFMailComposerViewController, но он не работает, как на iOS 6. В iOS 6 он работал с UIAppearance следующим образом:
// Navigation button
UIBarButtonItem *barButton = [UIBarButtonItem appearance];
NSDictionary *barButtonTitleTextAttributes = @{UITextAttributeTextColor: [UIColor redColor]};
NSDictionary *disabledBarButtonTitleTextAttributes = @{UITextAttributeTextColor: [UIColor grayColor]};
[barButton setTitleTextAttributes:barButtonTitleTextAttributes forState:UIControlStateNormal];
[barButton setTitleTextAttributes:disabledBarButtonTitleTextAttributes forState:UIControlStateDisabled];
[barButton setBackgroundImage:[[UIImage imageNamed:@"btn_appearance"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
Но это не работает на iOS 7 и выглядит так:
Я также попытался установить атрибут tintColor
на navigationBar, но это не имеет никакого эффекта:
navigationBar.tintColor = [UIColor redColor];
Есть ли способ изменить цвет текста кнопки навигации в MFMailComposeViewController на iOS 7?