Search code examples
swiftuitableviewuitoolbar

Toolbar in a TableView (Swift)


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?


Solution

  • navigationController?.setToolbarHidden(false, animated: true)
    

    and use storyboard to customise the ToolBar