Search code examples
swiftuitabbar

Best way to add a Tab Bar in Table View (Swift)


I have a view controller with a Table View. I'm trying to decide the best way to add a tab bar. Do I need a tab bar controller? Should I do it in Storyboard or programmatically? I seem to be having more problems with Storyboards.

The tab bar needs to be simple with two buttons. Any advice would be greatly appreciated.


Solution

  • I would just put a tab bar on bottom and the table view on top. These would be inside a view controller. I'd use interface builder. Just my opinion.

    You would want to adjust your constraints appropriately.