Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone : Hiding / showing Toolbar

I have a toolbar on top of my view with a back button. I would like when the view loads to appear with the toolbar hidden and then, with a touch of the button to appear animated.

--Edit-- I am not using a Navigation Controller.

like image 335
Pantelis Proios Avatar asked Nov 28 '11 10:11

Pantelis Proios


People also ask

How do I hide the tool bar in Safari?

Hide or show the toolbar: Choose View > Hide Toolbar or View > Show Toolbar. While working in full screen for some apps, choose View > Always Show Toolbar in Full Screen.

How do I turn off auto hide toolbar in Safari?

System Preferences - General - uncheck "automatically hide and show the menu bar. Save this answer.


1 Answers

Before the view is shown:

[self.navigationController setToolbarHidden:YES];

When you press the button:

[self.navigationController setToolbarHidden:NO];
like image 157
tarmes Avatar answered Sep 28 '22 03:09

tarmes