0

I have two storyboards in which I am using tab bar controller in first storyboard and has storyboard reference of second storyboard with navigation controller as root controller. Currently I'm able to see two tabs but stuck at how to set image and title to second tab, that is referencing to navigation controller in second storyboard.

TabBarController in Main.storyboard TabBarController in Main.storyboard

Second storyboard Second storyboard

Luuklag
  • 3,897
  • 11
  • 38
  • 57
Purna chandra
  • 107
  • 11

2 Answers2

5

Select your navigation controller in second storyboard and open attributes inspector. At the top you'll see bottom bar option with inferred selected by default. Change that to translucent tab bar. Now from object library drag and drop "Tab Bar Item" on that translucent tab bar that just appeared. Now you can set the title and icon for that tab.

Meeran Tariq
  • 1,366
  • 11
  • 23
1

Set the storyboard reference to Second.storyboard:

enter image description here

Select Item from storyboard reference and edit the name or image with what you wanted.

enter image description here

In Second.storyboard, select is initial view controller for UINavigationController:

enter image description here

Ankit Jayaswal
  • 5,549
  • 3
  • 16
  • 36