Search code examples
iosswiftxcodeuinavigationcontrolleruitabbarcontroller

Add Tab Bar to Navigation Controller


I want to add a tab bar with three options (Home) the first view, (Incidences) with the second view, and (Info) with the third view, in the first view I have 2 buttons that shows the second and the third view.

What I have to do to add tab bar with these 3 tabs, always visible in the App?

I have this structure now:


Solution

  • New project -> Tabbed Application. Replace the First and Second Views with your viewControllers. There will be no need for your left hand side view as the tabs will be your buttons