How to programmatically remove UINavigationbarbar?

I have a view controller and I installed a navigation bar with a tooltip in IB. But I want to remove the prompt and make the panel as "1 line". how can i do this in code?

+6
source share
1 answer
[[self navigationItem] setPrompt: nil]; 

This animates the removal of the invitation.

+13
source

Source: https://habr.com/ru/post/894966/


All Articles