I have a Toolbar at the bottom of my TableView in Storyboard within a ViewController. When I run the app, the toolbar only shows at the bottom of the table view. How can I make the toolbar fixed like the navigation bar? Do I need to have a tab bar controller?
Asked
Active
Viewed 2,026 times
2 Answers
3
navigationController?.setToolbarHidden(false, animated: true)
and use storyboard to customise the ToolBar

ThanksforHelp
- 81
- 2
-
My app is now showing two toolbars...the one I have in Storyboard and the one from setToolBarHidden. I deleted the storyboard one I had. How do I customize the one from your code using storyboard? – Aug 07 '15 at 19:42
-
im not sure how you could have two toolbars,how did you make your first toolbar?did you just make a footer and are calling it a toolbar? – ThanksforHelp Aug 07 '15 at 20:11
-
to customise the tool bar in storyboard select the viewController then in the attributes inspector -> simulated metrics -> set the bottom bar to translucent toolbar,then you can drag bar button items to that bar and hook them up to IBActions – ThanksforHelp Aug 07 '15 at 20:15
0
..this question may be a duplicate of here and thisone. There you will find some insight. Nevertheless, if what you are trying to do is to keep that view on top of all the others, then you should go ahead and try solutions depicted here

Community
- 1
- 1

Hugo Alonso
- 6,684
- 2
- 34
- 65