I have a UINavigationController inside a UITabBarController. I'm presenting a sort of popover view using a semi-transparent UIView, but am not calling presentModalViewController or any of the usual methods. I know about hidesBottomBarWhenPushed, but is there a way I can hide the bottom bar (or even betterm slide it out) on demand (just before my subView is added to the navigationController's top view)?
Asked
Active
Viewed 1.2k times
9
Echilon
- 9,829
- 30
- 130
- 210
2 Answers
17
Have you tried setting this property?
navigationController.toolbarHidden = YES;
Or with animation:
[navigationController setToolbarHidden:YES animated:YES];
-
Excellent. I thought UIToolbars were generally placed at the top but this seems to work. Thanks. – Echilon Jan 23 '12 at 19:03
-
12This hides and shows a bottom toolbar, but does not affect the tab bar. So, according to me it doesn't answer the question. – Kris Van Bael Jul 21 '12 at 11:30
-
`navigationController?.isToolbarHidden = true` – Rachit Mishra Aug 23 '18 at 20:57
0
See answer https://stackoverflow.com/a/9141766/305351 to related question.
Specifically Borut Tomazin's comment and his solution https://gist.github.com/borut-t/6507423.
Community
- 1
- 1
Martyn Davis
- 585
- 1
- 9
- 16