Tôi muốn thay đổi phông chữ và color..so tiêu đề chuyển hướng của, cho rằng tôi đã làm điều này dưới đây code..but nó không làm việc ...UINavigationBar tiêu đề thay đổi văn bản và font size
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");
}
tại sao mã này không hoạt động?