Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a subtitle in navigationbar

In iOS you can create a title with:

self.navBar.title = @"";

where I set navBar in the header file.

Is there also something for the subTitle / Description?

I found description when I typed a . after self.navBar and thought maybe I could do something with this?

like image 355
ComputerFreak Avatar asked Apr 14 '15 11:04

ComputerFreak


1 Answers

Use the self.navBar.navigationItem.prompt = @"This is the subtitle";

It's from UIKit in the base UINavigationViewController.

like image 142
David 'mArm' Ansermot Avatar answered Nov 15 '22 09:11

David 'mArm' Ansermot