开发者

Add a line below the navigationBar title

开发者 https://www.devze.com 2022-12-26 04:29 出处:网络
How can I add a second line (smaller font) below the navigationBar title as shown below? I want to show it bel开发者_开发知识库ow Sunday

How can I add a second line (smaller font) below the navigationBar title as shown below? I want to show it bel开发者_开发知识库ow Sunday

alt text http://img.skitch.com/20100404-8kaabe5f6b5bdf66wt9kfymepw.jpg


[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"];
0

精彩评论

暂无评论...
验证码 换一张
取 消