Greg Thompson
Greg Thompson

Reputation: 894

Multiple Navigation controllers/Tab Bar controllers on one storyboard

Ok guys, novice here. I have a screen shot of storyboard I'm working on and I'm running into an issue where I can't name an item on my first tab bar because it points to a second tab bar controller. First I want to ask would this be proper use or should there only be one of these "types" per project. secondly, how the heck can I name the first tab bar item? I would do it normally by clicking on the tab element in the targeted view. Here's the screen shot.

enter image description here

Upvotes: 1

Views: 1749

Answers (1)

Adam Kaump
Adam Kaump

Reputation: 735

Typically you only have one TabBarController in your project, and it is the root view controller.

And in storyboards, you can name your tabs not on the controller, but on the tabs under the separate views. Try double clicking on the label below your red, blue, yellow, etc views to name your tabs. Or, you can select the area below the view (which should be a TabBarItem) and the use the Attribute Inspector on the right to edit the title.

Attribute Inspector:1

Upvotes: 2

Related Questions