Reputation: 2218
how to add assistant text above navigation bar or toolbar. Just like this in the mail app, i want a big navigation bar with some text above titles.
Should I use navigation bar or use a toolbar and how should I implement that.
Upvotes: 1
Views: 1202
Reputation: 14128
There is property named "prompt" in UINavigationBarItem. Refer UINavigationBarItem Class Reference
That one will solved exactly your requirement. This property will allow developer to add a title above the navigation bar. You can simply try with doing the same in sample storyboard example.
Check this:
Hope this helps.
Upvotes: 1
Reputation: 13546
You should use prompt
property of UINavigationItem
.
self.navigationItem.prompt = @"Extra text;
See doc for reference:
Upvotes: 0
Reputation: 5377
That is UINavigationItem
's prompt
.
Like this:
[[self navigationItem] setPrompt:@"YourString"];
Upvotes: 0