Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove UINavigationbar prompt programmatically?

I have a view controller, and I set the navigation bar with prompt in IB. But I want to remove the prompt and make the bar as "1 line" sometimes. how can I do it in code?

like image 612
Eric Wong Avatar asked Aug 13 '11 09:08

Eric Wong


1 Answers

[[self navigationItem] setPrompt: nil];

This animates the removal of the prompt.

like image 145
Obliquely Avatar answered Sep 28 '22 11:09

Obliquely