Ich möchte Navigation Titel Schriftart und color..so ändern, dass ich das getan habe unter code..but seine nicht funktioniert ...UINavigationBar ändern Titel Textfarbe und Schriftgröße
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7")) {
NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor],
NSForegroundColorAttributeName,
[UIFont fontWithName:@"MyFavoriteFont" size:20.0],
NSFontAttributeName,
nil];
[[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];
NSLog(@"setTitleTextAttributes");
}
warum Dieser Code funktioniert nicht?