How can I add a second line (smaller font) below the navigationBar title as shown below? I want to show it below Sunday
A:
[UINavigationItem prompt]
is what you're looking for.
You might set this in a UIViewController
's initWithNibName:bundle:
(or init
if you're not using XIBs) like this:
[[self navigationItem] setPrompt:@"The best day of the week"];
Adam Ernst
2010-04-04 18:44:49
Thank you Adam, but this displays on top of my title, not below it. Do you know how could I put it below?
Cy.
2010-04-04 19:07:18
You can create a view that has two UILabels inside it, then set [UINavigationItem titleView] to this view. You'll have to make one label look like the default title, and the other one with smaller font to mimic the label appearance.
Adam Ernst
2010-04-04 20:57:43