Use Storyboard References While Retaining Icons & Text for Tab Bar Controller

前端 未结 6 1096
刺人心
刺人心 2021-01-17 08:45

I started refactoring one of my projects to make the code easier to manage and the Tab Bar Controller lost its icons for which tab represents what. Without this I\'m a bit l

6条回答
  •  执念已碎
    2021-01-17 09:24

    It seems another solution that worked for me without altering the Approach you went through:

    • Leave Storyboard references as it's
      • Go to Initial view controller in the referenced storyboard
      • Add Tab bar item to the scene
      • Configure it as you have done in UITabBarController storyboard
      • Clean & Run
      • Repeat it for all Storyboard references

    Happy Coding!

提交回复
热议问题