UITabBarController Issues with Storyboard References
Asked Answered
S

2

6
  1. I have four storyboard files in the project.
  2. In the "TabView.storyboard", I create three Storyboard Reference instances and link them to the other storyboard respectively.

  1. Then I run the app in the simulator and device. The title and icon image on the tab bar item just don't appear(both on simulator and device).

However, if I crate the UITabBarController and it's view controllers in common way, and use "Editor->Refactor to storyboard" option in the menu, the titles and icon images show normally.

It this a bug of Xcode7?

Schematize answered 17/10, 2015 at 5:10 Comment(0)
B
18

Seems like a similar issue to the question. I answered here.

You need to add the tab bar item in the destination storyboard view controller.

Brathwaite answered 17/11, 2015 at 14:56 Comment(0)
H
0

Can you ensure that the entry point of the storyboard is the TabBarController itself? This looks similar to an issue I saw before where the person had declared that the storyboard entry point be in the HomeViewController instead of the TabBarController, which results in the app starting on the HomeViewController but lacking the actual tabs.

If you select a controller in the story board there should be a checkbox to flag that controller as the entry point.

Hexarchy answered 17/10, 2015 at 5:26 Comment(1)
I'm pretty sure that the "Is Initial View Controller" of the UITabBarController is checked. And you can also see the entry arrow on the TabBarController in my first screenshot.Schematize

© 2022 - 2024 — McMap. All rights reserved.