Richard
Richard

Reputation: 11

Adding a third tab view in xcode 6.2 or 6.3

I have trawled the internet and can see how to add a new scene to the storyboard by dropping a tab bar item into the new controller and then creating a segue from the main tab bar controller to my new view. I have then added labels and run the project in the simulator. But when I add a button in the storyboard scene, where is the associated view controller file? How do I create it or select it in order to enter my buttons functions?

Upvotes: 1

Views: 1528

Answers (1)

jimrice
jimrice

Reputation: 452

Adding a view controller to the storyboard does not generate code. You will want to create a custom class for each view controller. In order to do that you will need to follow the images below.

  1. Adding View Controller 1

  2. Adding View Controller 2

  3. Adding View Controller 3

  4. Adding View Controller 4

After you have done that you will see the new class for the final view controller on the left with all your other classes. You then need to connect the class to your view controller.

  1. Connecting Class to Controller 1

  2. Connecting Class to Controller 2

Upvotes: 2

Related Questions