Ändern Sie die Farbe der Navigationsschaltfläche in MFMailComposerViewController auf iOS 7

Ich versuche, ändern Sie die text-Farbe für die navigation die Schaltflächen in einem MFMailComposerViewController aber es funktioniert nicht wie unter iOS 6. In iOS 6 klappte es mit UIAppearance wie diese:

//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];

Aber das funktioniert nicht auf iOS 7 und sieht immer so aus:
Ändern Sie die Farbe der Navigationsschaltfläche in MFMailComposerViewController auf iOS 7

Ich auch versucht, die tintColor - Attribut auf die navigationBar aber das hat keinen Effekt:

navigationBar.tintColor = [UIColor redColor];

Ist es sowieso zu ändern, die navigation, der text in der Schaltfläche Farbe in einem MFMailComposeViewController auf iOS 7?

InformationsquelleAutor der Frage OemerA | 2013-10-12

Schreibe einen Kommentar