6
votes

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?

1

1 Answers

14
votes
[[self navigationItem] setPrompt: nil];

This animates the removal of the prompt.