Trying to add 3rd tab to tabBarController

Here is the video I watched that taught me how to add a third tab to a TabBarController:

  • Tab bar for Xcode Swift for iOS

I will summarize the process below.

Create a new Tabbed Application project

enter image description here

This will automatically provide two tabs that already “just work”.

enter image description here

Add new View Controller

Drag another view controller onto the storyboard.

enter image description here

Add Tab Bar Item

Drag a Tab Bar Item onto the new View Controller that you just added.

enter image description here

Connect to Tab View Controller

Click and Control-Drag from the Tab View Controller to your new View Controller. A menu will pop up. Choose the view controllers option under the Relationship Segue group.

enter image description here

That’s it. You should be able to run it now and have all three tabs work. Watch the video that I linked to for more details.

Note:

  • To do anything on your new tab, don’t forget to add a new View Controller class (as you would for any new View Controller).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)