I am using UIAppearance to set the font for the title of the UINavigation panel in my application.
If I do not set the appearance font, the title is immediately as expected, and its presentation is not animated.
However, when I specify an alternative font using UIAppearance, the title appears (with the specified font), but appears with some kind of animated transition when loading on iOS 5. It also sometimes stops (?) And displays only the first character of the name. If I leave and go back, the title will display correctly.
I see this problem only on iOS 5, and setting the title with the correct font display on iOS 6.
This problem can also be seen on the simulator for iOS 5 and again behaves correctly with iOS 6 in the simulator.
I set the look in AppDelegate as follows:
[[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWithName:FONT_OF_ALL_KNOWLEDGE size:0.0f], UITextAttributeFont, nil]];
The title for the panel is set to viewDidLoad for each of the [tabbed] views,
- (void)viewDidLoad { [super viewDidLoad]; [self.navigationItem setTitle:@"Title"]; }
Has anyone else seen this problem and is there a fix? Thanks.
UPDATE
I tried to set the font explicitly in viewDidLoad (just before setting the title), instead of using UIAppearance, and I still see the same problem and still on iOS 5.
Snips source share