iPhone : Hiding / showing Toolbar

Pantelis Proios picture Pantelis Proios · Nov 28, 2011 · Viewed 19.5k times · Source

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.

Answer

tarmes picture tarmes · Nov 28, 2011

Before the view is shown:

[self.navigationController setToolbarHidden:YES];

When you press the button:

[self.navigationController setToolbarHidden:NO];