I'm trying to add a 3rd tab to the tabBarController using ios5. The standard object you get when you drag it out to your storyboard has 2 tabs. Does anyone know how to do this? I searched the internet and all examples start with their tabBarController with the extra tabs without showing how to get it.
To add a tab, first drag a new View Controller object to the storybard. Next control-drag from the tab bar controller to new view controller and select view controllers under Relationship Segue . Your tab bar controller will update with a new tab.
Here is the video I watched that taught me how to add a third tab to a TabBarController:
I will summarize the process below.
This will automatically provide two tabs that already "just work".
Drag another view controller onto the storyboard.
Drag a Tab Bar Item onto the new View Controller that you just added.
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.
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:
Based on Wolvorin and Tom van responses, and based on what I have experienced you should do as following:
View Controller
(in Controllers and Objects)Tab Bar Item
to the newly added viewTab Bar Controller
icon (next to First Responder), and Control-Drag to the newly added ViewIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With