1

Say I just want to do it through storyboard instead of coding. I want to turn the titleView into a searchbar.

1
  • Isn't its titleView property an outlet? Is in my IB Sep 28, 2012 at 9:34

2 Answers 2

0

You just double click on the navigation bar, then you will be allowed to enter text. The text you enter is the title of the navigation bar

It's available only on storyBoard.

3
  • That won't help with the title view though. Sep 28, 2012 at 9:50
  • 3
    the question was about title VIEW but not title itself
    – Stas
    Sep 28, 2012 at 9:51
  • Well, I want to change the titleView into something more elaborate like a searchbar.
    – user4951
    Sep 28, 2012 at 10:03
0

I didn't know what got me but yes you can easily add searchBar to navigationController Title View.

Just drag that searchBar to the location.

It seems that I must have missed that somehow. It works fine. I think somehow it didn't work before but it works fine now. I am not sure what happened.

Here is screenshot

enter image description here

Note: You can only add textView. Not UIView or UIImageView it seems.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.