iOS ändert die Schriftart und Farbe der Navigationsleiste

Also habe ich diesen code ändern sollte der nav-Leiste Titel-schriftart ist, aber es doenst

    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFont
                                                                       fontWithName:_dataManager.optionsSettings.fontString size:14], NSFontAttributeName,
                            [UIColor whiteColor], NSForegroundColorAttributeName, nil];

[[UINavigationBar appearance] setTitleTextAttributes:attributes];

Ändern Sie die zurück-Taste schriftart mit diesem code funktioniert Prima.

   //set backbutton font
NSDictionary *normalAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                  [UIFont fontWithName:_dataManager.optionsSettings.fontString size:15], NSFontAttributeName,
                                  nil];
[[UIBarButtonItem appearance] setTitleTextAttributes:normalAttributes
                                            forState:UIControlStateNormal];

InformationsquelleAutor der Frage aZtraL-EnForceR | 2013-11-05

Schreibe einen Kommentar