UItabbar item not showing storyboard reference

孤街醉人 提交于 2019-11-30 04:20:54

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

This answer is pretty late, but I had an similar problem. This may be helpful for others who find this post later.

When using a UISplitViewController there is an issue for me adding the item in storyboard which can be solved with a workaround.

Scenario:

UITabBarController -> StoryboardReference -> UISplitViewController

Problem:

You can't add an UITabBarItem to the UISplitViewController

Solution / Workaround:

Add an UITabBarController within the UISplitViewControllers storyboard and assign the UISplitViewController as one of the tabs.An UITabBarItem will be added to the UISplitViewController. You can delete the unnecessary UITabBarController. The UITabBarItem will be kept.

you can get storyboard reference like this

UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!